Kind: global class
-
Wallet
- new Wallet(privateKey)
-
instance
-
.getPrivateKey() ⇒
String
-
.getPublicKey() ⇒
String
-
.getScriptHash() ⇒
String
-
.getAddress() ⇒
String
-
.sign(data) ⇒
String
-
.verify(data, signature) ⇒
Boolean
-
.getPrivateKey() ⇒
-
static
-
.getPublicKeyFromPrivateKey(privateKey) ⇒
String
-
.getScriptHashFromPublicKey(publicKey) ⇒
String
-
.getAddressFromScriptHash(scriptHash) ⇒
String
-
.getScriptHashFromAddress(address) ⇒
String
-
.sign(data, privateKey) ⇒
String
-
.verify(data, signature, publicKey) ⇒
Boolean
-
.getPublicKeyFromPrivateKey(privateKey) ⇒
Import or create instance with new privateKey
Returns: Wallet
- class instance
Param | Type |
---|---|
privateKey | String |
Getting privateKey
Kind: instance method of Wallet
Returns: String
- privateKey
Getting publicKey
Kind: instance method of Wallet
Returns: String
- publicKey
Getting scriptHash
Kind: instance method of Wallet
Returns: String
- scriptHash
Getting address of wallet
Kind: instance method of Wallet
Returns: String
- address
Creating signature of data by privateKey
Kind: instance method of Wallet
Returns: String
- signature
Param | Type |
---|---|
data | String |
Checking signature of data by publicKey
Kind: instance method of Wallet
Returns: Boolean
- result of checking
Param | Type |
---|---|
data | String |
signature | String |
[static]Generate publicKey by privateKey
Kind: static method of Wallet
Returns: String
- publicKey
Param | Type |
---|---|
privateKey | String |
[static]Generate scriptHash by publicKey
Kind: static method of Wallet
Returns: String
- scriptHash
Param | Type |
---|---|
publicKey | String |
[static]Generate address by scriptHash
Kind: static method of Wallet
Returns: String
- address
Param | Type |
---|---|
scriptHash | String |
[static]Generate scriptHash by address
Kind: static method of Wallet
Returns: String
- scriptHash
Param | Type |
---|---|
address | String |
[static]Creating signature of data by privateKey
Kind: static method of Wallet
Returns: String
- signature
Param | Type |
---|---|
data | String |
privateKey | String |
[static]Checking signature of data by publicKey
Kind: static method of Wallet
Returns: Boolean
- result of checking
Param | Type |
---|---|
data | String |
signature | String |
publicKey | String |