public class DnaId extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
String |
createDnaIdClaim(String signerDnaid,
String password,
byte[] salt,
String context,
Map<String,Object> claimMap,
Map metaData,
Map clmRevMap,
long expire) |
String |
getContractAddress() |
Object |
getMerkleProof(String txhash) |
Transaction |
makeAddAttributes(String dnaid,
String password,
byte[] salt,
Attribute[] attributes,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeAddPubKey(String dnaid,
String password,
byte[] salt,
String newpubkey,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeAddPubKey(String dnaid,
String recovery,
String password,
byte[] salt,
String newpubkey,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeAddRecovery(String dnaid,
String password,
byte[] salt,
String recoveryAddr,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeChangeRecovery(String dnaid,
String newRecovery,
String oldRecovery,
String password,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeRegister(String dnaid,
String publickey,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeRegisterWithAttrs(String dnaid,
String password,
byte[] salt,
String publickey,
Attribute[] attributes,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeRemoveAttribute(String dnaid,
String password,
byte[] salt,
String path,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeRemovePubKey(String dnaid,
String password,
byte[] salt,
String removePubkey,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeRemovePubKey(String dnaid,
String recoveryAddr,
String password,
byte[] salt,
String removePubkey,
String payer,
long gaslimit,
long gasprice) |
String |
sendAddAttributes(String dnaid,
Account controler,
Attribute[] attributes,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendAddAttributes(String dnaid,
String password,
byte[] salt,
Attribute[] attributes,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendAddPubKey(String dnaid,
Account controler,
String newpubkey,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendAddPubKey(String dnaid,
String password,
byte[] salt,
String newpubkey,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendAddPubKey(String dnaid,
String recovery,
String password,
byte[] salt,
String newpubkey,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendAddRecovery(String dnaid,
String password,
byte[] salt,
String recoveryAddr,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendChangeRecovery(String dnaid,
String newRecovery,
String oldRecovery,
String password,
byte[] salt,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendGetAttributes(String dnaid) |
String |
sendGetDDO(String dnaid) |
String |
sendGetKeyState(String dnaid,
int index) |
String |
sendGetPublicKeys(String dnaid) |
String |
sendRegister(Identity ident,
String password,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendRegister(Identity ident,
String password,
Account payerAcct,
long gaslimit,
long gasprice,
boolean isPreExec) |
String |
sendRegisterPreExec(Identity ident,
String password,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendRegisterWithAttrs(Identity ident,
String password,
Attribute[] attributes,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendRemoveAttribute(String dnaid,
Account controler,
String path,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendRemoveAttribute(String dnaid,
String password,
byte[] salt,
String path,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendRemovePubKey(String dnaid,
Account controler,
String removePubkey,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendRemovePubKey(String dnaid,
String password,
byte[] salt,
String removePubkey,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendRemovePubKey(String dnaid,
String recovery,
String password,
byte[] salt,
String removePubkey,
Account payerAcct,
long gaslimit,
long gasprice) |
boolean |
verifyDnaIdClaim(String claim) |
boolean |
verifyMerkleProof(String merkleProof) |
public DnaId(DnaSdk sdk)
public String getContractAddress()
public String sendRegister(Identity ident, String password, Account payerAcct, long gaslimit, long gasprice, boolean isPreExec) throws Exception
ident - password - payerAcct - gaslimit - gasprice - isPreExec - Exceptionpublic String sendRegisterPreExec(Identity ident, String password, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic String sendRegister(Identity ident, String password, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeRegister(String dnaid, String publickey, String payer, long gaslimit, long gasprice) throws Exception
dnaid - payer - gasprice - Exceptionpublic String sendRegisterWithAttrs(Identity ident, String password, Attribute[] attributes, Account payerAcct, long gaslimit, long gasprice) throws Exception
ident - password - attributes - payerAcct - gaslimit - gasprice - Exceptionpublic Transaction makeRegisterWithAttrs(String dnaid, String password, byte[] salt, String publickey, Attribute[] attributes, String payer, long gaslimit, long gasprice) throws Exception
dnaid - password - attributes - payer - gaslimit - gasprice - Exceptionpublic String sendGetPublicKeys(String dnaid) throws Exception
dnaid - Exceptionpublic String sendGetKeyState(String dnaid, int index) throws Exception
dnaid - Exceptionpublic String sendAddPubKey(String dnaid, String password, byte[] salt, String newpubkey, Account payerAcct, long gaslimit, long gasprice) throws Exception
dnaid - password - newpubkey - payerAcct - gaslimit - gasprice - Exceptionpublic String sendAddPubKey(String dnaid, String recovery, String password, byte[] salt, String newpubkey, Account payerAcct, long gaslimit, long gasprice) throws Exception
dnaid - recovery - password - newpubkey - payerAcct - gaslimit - gasprice - Exceptionpublic String sendAddPubKey(String dnaid, Account controler, String newpubkey, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeAddPubKey(String dnaid, String password, byte[] salt, String newpubkey, String payer, long gaslimit, long gasprice) throws Exception
dnaid - password - newpubkey - payer - gaslimit - gasprice - Exceptionpublic Transaction makeAddPubKey(String dnaid, String recovery, String password, byte[] salt, String newpubkey, String payer, long gaslimit, long gasprice) throws Exception
dnaid - recovery - password - newpubkey - payer - gaslimit - gasprice - Exceptionpublic String sendRemovePubKey(String dnaid, String password, byte[] salt, String removePubkey, Account payerAcct, long gaslimit, long gasprice) throws Exception
dnaid - password - removePubkey - payerAcct - gaslimit - gasprice - Exceptionpublic String sendRemovePubKey(String dnaid, String recovery, String password, byte[] salt, String removePubkey, Account payerAcct, long gaslimit, long gasprice) throws Exception
dnaid - recovery - password - removePubkey - payerAcct - gaslimit - gasprice - Exceptionpublic String sendRemovePubKey(String dnaid, Account controler, String removePubkey, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeRemovePubKey(String dnaid, String password, byte[] salt, String removePubkey, String payer, long gaslimit, long gasprice) throws Exception
dnaid - password - removePubkey - payer - gaslimit - gasprice - Exceptionpublic Transaction makeRemovePubKey(String dnaid, String recoveryAddr, String password, byte[] salt, String removePubkey, String payer, long gaslimit, long gasprice) throws Exception
dnaid - recoveryAddr - password - removePubkey - payer - gaslimit - gasprice - Exceptionpublic String sendAddRecovery(String dnaid, String password, byte[] salt, String recoveryAddr, Account payerAcct, long gaslimit, long gasprice) throws Exception
dnaid - password - recoveryAddr - payerAcct - gaslimit - gasprice - Exceptionpublic Transaction makeAddRecovery(String dnaid, String password, byte[] salt, String recoveryAddr, String payer, long gaslimit, long gasprice) throws Exception
dnaid - password - recoveryAddr - payer - gasprice - Exceptionpublic String sendChangeRecovery(String dnaid, String newRecovery, String oldRecovery, String password, byte[] salt, Account payerAcct, long gaslimit, long gasprice) throws Exception
dnaid - password - newRecovery - oldRecovery - Exceptionpublic Transaction makeChangeRecovery(String dnaid, String newRecovery, String oldRecovery, String password, String payer, long gaslimit, long gasprice) throws SDKException
dnaid - newRecovery - oldRecovery - password - gasprice - SDKExceptionpublic String sendAddAttributes(String dnaid, String password, byte[] salt, Attribute[] attributes, Account payerAcct, long gaslimit, long gasprice) throws Exception
dnaid - password - attributes - payerAcct - gaslimit - gasprice - Exceptionpublic String sendAddAttributes(String dnaid, Account controler, Attribute[] attributes, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeAddAttributes(String dnaid, String password, byte[] salt, Attribute[] attributes, String payer, long gaslimit, long gasprice) throws Exception
dnaid - password - attributes - payer - gasprice - Exceptionpublic String sendRemoveAttribute(String dnaid, String password, byte[] salt, String path, Account payerAcct, long gaslimit, long gasprice) throws Exception
dnaid - password - path - payerAcct - gaslimit - gasprice - Exceptionpublic String sendRemoveAttribute(String dnaid, Account controler, String path, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeRemoveAttribute(String dnaid, String password, byte[] salt, String path, String payer, long gaslimit, long gasprice) throws Exception
dnaid - password - path - payer - gasprice - Exceptionpublic Object getMerkleProof(String txhash) throws Exception
txhash - Exceptionpublic boolean verifyMerkleProof(String merkleProof) throws Exception
merkleProof - Exceptionpublic String createDnaIdClaim(String signerDnaid, String password, byte[] salt, String context, Map<String,Object> claimMap, Map metaData, Map clmRevMap, long expire) throws Exception
signerDnaid - password - context - claimMap - metaData - clmRevMap - expire - Exceptionpublic boolean verifyDnaIdClaim(String claim) throws Exception
claim - ExceptionCopyright © 2021. All rights reserved.