EOSIO/eosjs-ecc là một trong những repo mã nguồn mở mà TopGit theo dõi, hiện có 288 sao, viết chủ yếu bằng JavaScript. Elliptic curve cryptography functions: Private Key, Public Key, Signature, AES, Encryption, Decryption
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
seedstring any length string. This is private. The same
seed produces the same private key every time. At least 128 random
bits should be used to produce a good private key.
Examples
ecc.seedPrivate('secret') === wif
Returns wif
privateToPublic
Parameters
wifwif
pubkey_prefixstring public key prefix (optional, default 'EOS')
Examples
ecc.privateToPublic(wif) === pubkey
Returns pubkey
isValidPublic
Parameters
pubkeypubkey like EOSKey..
pubkey_prefixstring (optional, default 'EOS')
Examples
ecc.isValidPublic(pubkey) === true
Returns boolean valid
isValidPrivate
Parameters
wifwif
Examples
ecc.isValidPrivate(wif) === true
Returns boolean valid
sign
Create a signature using data or a hash.
Parameters
data(string | Buffer)
privateKey(wif | PrivateKey)
encodingString data encoding (if string) (optional, default 'utf8')
Examples
ecc.sign('I am alive', wif)
Returns string string signature
signHash
Parameters
dataSha256(String | Buffer) sha256 hash 32 byte buffer or string
Returns (string | Buffer) Buffer when encoding is null, or string
pubkey
EOSKey..
Type: string
Usage (Object API)
let {PrivateKey, PublicKey, Signature, Aes, key_utils, config} = require('eosjs-ecc')
// Create a new random private key
let privateWif
PrivateKey.randomKey().then(privateKey => privateWif = privateKey.toWif())
// Convert to a public key
pubkey = PrivateKey.fromString(privateWif).toPublic().toString()
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/EOSIO/eosjs-ecc là nguồn chính thức.
EOSIO/eosjs-ecc có bao nhiêu sao?
EOSIO/eosjs-ecc có 288 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/EOSIO/eosjs-ecc. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
EOSIO/eosjs-ecc có phải mã nguồn mở không?
TopGit chưa ghi nhận license cho EOSIO/eosjs-ecc. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
EOSIO/eosjs-ecc có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho EOSIO/eosjs-ecc. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
EOSIO/eosjs-ecc là gì?
EOSIO/eosjs-ecc (EOSIO/eosjs-ecc) là dự án JavaScript trên GitHub. Theo mô tả gốc: Elliptic curve cryptography functions: Private Key, Public Key, Signature, AES, Encryption, Decryption
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về eosjs-ecc?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về eosjs-ecc.