public class Account extends Object
| 构造器和说明 |
|---|
Account(boolean fromPrivate,
byte[] pubkey) |
Account(byte[] prikey,
SignatureScheme scheme) |
Account(SignatureScheme scheme) |
public Account(SignatureScheme scheme) throws Exception
Exceptionpublic Account(byte[] prikey,
SignatureScheme scheme)
throws Exception
Exceptionpublic static byte[] getPrivateKeyFromWIF(String wif)
wif - get private from wifpublic SignatureScheme getSignatureScheme()
public KeyType getKeyType()
public Object[] getCurveParams()
public static String getEcbDecodedPrivateKey(String encryptedPriKey, String passphrase, int n, SignatureScheme scheme) throws Exception
encryptedPriKey - encryptedPriKeypassphrase - passphraseExceptionpublic Address getAddressU160()
public PublicKey getPublicKey()
public PrivateKey getPrivateKey()
public byte[] generateSignature(byte[] msg,
SignatureScheme scheme,
Object param)
throws Exception
Exceptionpublic boolean verifySignature(byte[] msg,
byte[] signature)
throws Exception
Exceptionpublic byte[] serializePublicKey()
public int compareTo(Account o)
public String exportEcbEncryptedPrikey(String passphrase, int n) throws SDKException
SDKExceptionpublic String exportCtrEncryptedPrikey(String passphrase, int n) throws Exception
Exceptionpublic String exportGcmEncryptedPrikey(String passphrase, byte[] salt, int n) throws Exception
Exceptionpublic static String getCtrDecodedPrivateKey(String encryptedPriKey, String passphrase, String address, int n, SignatureScheme scheme) throws Exception
Exceptionpublic static String getCtrDecodedPrivateKey(String encryptedPriKey, String passphrase, byte[] salt, int n, SignatureScheme scheme) throws Exception
Exceptionpublic static String getGcmDecodedPrivateKey(String encryptedPriKey, String passphrase, String address, byte[] salt, int n, SignatureScheme scheme) throws Exception
ExceptionCopyright © 2021. All rights reserved.