public class OntId extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
String |
createOntIdClaim(String signerOntid,
Account pkAcc,
String context,
Map<String,Object> claimMap,
Map metaData,
Map clmRevMap,
long expire) |
String |
getContractAddress() |
Object |
getMerkleProof(String txhash) |
Transaction |
makeAddAttributes(String ontid,
Attribute[] attributes,
byte[] pk,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeAddAttributesByController(String ontid,
Attribute[] attributes,
Signer[] signers,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeAddAttributesByIndex(String ontid,
Attribute[] attributes,
int index,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeAddContext(String ontid,
byte[][] contexts,
int index,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeAddKeyByController(String ontid,
byte[] pubKey,
Signer[] signers,
String controller,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeAddKeyByIndex(String ontid,
byte[] newPubKey,
int index,
String controller,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeAddKeyByRecovery(String ontid,
byte[] pubKey,
Signer[] signers,
String controller,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeAddNewAuthKey(String ontid,
byte[] pubKey,
String controller,
int signIndex,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeAddNewAuthKeyByController(String ontid,
byte[] pubKey,
String controller,
Signer[] signers,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeAddNewAuthKeyByRecovery(String ontid,
byte[] pubKey,
String controller,
Signer[] signers,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeAddPubKey(String ontid,
byte[] newPubKey,
byte[] pubKey,
String controller,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeAddService(String ontid,
byte[] serviceId,
byte[] type,
byte[] serviceEndpint,
int index,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeRegister(String ontid,
byte[] pubKey,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeRegisterIdWithController(String ontId,
Group controller,
Signer[] signers,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeRegisterWithAttrs(String ontid,
byte[] publickey,
Attribute[] attributes,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeRemoveAttribute(String ontid,
byte[] removeKey,
byte[] pk,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeRemoveAttributeByIndex(String ontid,
byte[] removeKey,
int index,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeRemoveAttributesByController(String ontid,
byte[] key,
Signer[] signers,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeRemoveAuthKey(String ontid,
int index,
int signIndex,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeRemoveAuthKeyByController(String ontid,
int index,
Signer[] signers,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeRemoveAuthKeyByRecovery(String ontid,
int index,
Signer[] signers,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeRemoveContext(String ontid,
byte[][] contexts,
int index,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeRemoveController(String ontId,
int index,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeRemoveKeyByController(String ontid,
int pubKeyIndex,
Signer[] signers,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeRemoveKeyByIndex(String ontid,
byte[] removePubKey,
int index,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeRemoveKeyByRecovery(String ontid,
int pubKeyIndex,
Signer[] signers,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeRemovePubKey(String ontid,
byte[] removePubkey,
byte[] pubKey,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeRemoveRecovery(String ontid,
int index,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeRemoveService(String ontid,
byte[] serviceId,
int index,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeRevokeId(String ontId,
int index,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeRevokeIdByController(String ontId,
Signer[] signers,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeSetAuthKeyByController(String ontid,
int index,
Signer[] signers,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeSetAuthKeyByRecovery(String ontid,
int index,
Signer[] signers,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeSetRecovery(String ontid,
Group recovery,
int index,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeUpdateRecovery(String ontid,
Group newRecovery,
Signer[] signers,
String payer,
long gaslimit,
long gasprice) |
Transaction |
makeUpdateService(String ontid,
byte[] serviceId,
byte[] type,
byte[] serviceEndpint,
int index,
String payer,
long gaslimit,
long gasprice) |
String |
sendAddAttributes(String ontid,
Attribute[] attributes,
Account pk,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendAddAttributesByController(String ontid,
Attribute[] attributes,
Signer[] signers,
Account[] controllerSigners,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendAddAttributesByIndex(String ontid,
Attribute[] attributes,
int index,
Account pk,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendAddContext(String ontid,
byte[][] contexts,
int index,
Account pk,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendAddKeyByController(String ontid,
byte[] pubkey,
Signer[] signers,
String controller,
Account[] controllerSigner,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendAddKeyByIndex(String ontid,
Account pk,
byte[] newPubKey,
int index,
String controller,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendAddKeyByRecovery(String ontid,
byte[] pubkey,
Signer[] signers,
String controller,
Account[] recoverySigners,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendAddNewAuthKey(String ontid,
byte[] pubKey,
String controller,
int signIndex,
Account pk,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendAddNewAuthKeyByController(String ontid,
byte[] pubKey,
String controller,
Signer[] signers,
Account pk,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendAddNewAuthKeyByRecovery(String ontid,
byte[] pubKey,
String controller,
Signer[] signers,
Account pk,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendAddPubKey(String ontid,
Account pk,
byte[] newPubKey,
String controller,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendAddService(String ontid,
byte[] serviceId,
byte[] type,
byte[] serviceEndpint,
int index,
Account pk,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendGetAttributes(String ontid) |
String |
sendGetController(String ontid) |
String |
sendGetDDO(String ontid)
已过时。
已废弃使用
|
String |
sendGetDocument(String ontid) |
String |
sendGetKeyState(String ontid,
int index) |
String |
sendGetPublicKeys(String ontid) |
String |
sendGetService(String ontid,
byte[] serviceId) |
String |
sendRegister(String ontId,
Account pk,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendRegisterIdWithController(String ontId,
Account[] controllerSigners,
Group controller,
Signer[] signers,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendRegisterPreExec(String ontId,
Account pk,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendRegisterWithAttrs(String ontId,
Attribute[] attributes,
Account pk,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendRemoveAttribute(String ontid,
byte[] removeKey,
Account pk,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendRemoveAttributeByIndex(String ontid,
byte[] removeKey,
int index,
Account pk,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendRemoveAttributesByController(String ontid,
byte[] key,
Signer[] signers,
Account[] controllerSigners,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendRemoveAuthKey(String ontid,
int index,
int signedIndex,
Account pk,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendRemoveAuthKeyByController(String ontid,
int index,
Signer[] signers,
Account pk,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendRemoveAuthKeyByRecovery(String ontid,
int index,
Signer[] signers,
Account pk,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendRemoveContext(String ontid,
byte[][] contexts,
int index,
Account pk,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendRemoveController(String ontId,
int index,
Account pk,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendRemoveKeyByController(String ontid,
int pubkeyIndex,
Signer[] signers,
Account[] controllerSigner,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendRemoveKeyByIndex(String ontid,
Account pk,
byte[] removePubkey,
int index,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendRemoveKeyByRecovery(String ontid,
int pubkeyIndex,
Signer[] signers,
Account[] recoverySigners,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendRemovePubKey(String ontid,
byte[] removePubkey,
Account pk,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendRemoveRecovery(String ontid,
int index,
Account pkAcc,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendRemoveService(String ontid,
byte[] serviceId,
int index,
Account pk,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendRevokeId(String ontId,
int index,
Account pk,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendRevokeIdByController(String ontId,
Signer[] signers,
Account[] controllerSigners,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendSetAuthKeyByController(String ontid,
int index,
Signer[] signers,
Account pk,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendSetAuthKeyByRecovery(String ontid,
int index,
Signer[] signers,
Account pk,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendSetRecovery(String ontid,
Group recovery,
int index,
Account pk,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendUpdateRecovery(String ontid,
Group newRecovery,
Signer[] signers,
Account[] recoverySigners,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendUpdateService(String ontid,
byte[] serviceId,
byte[] type,
byte[] serviceEndpint,
int index,
Account pk,
Account payerAcct,
long gaslimit,
long gasprice) |
String |
sendVerifyController(String ontid,
Signer[] signers,
Account[] accounts) |
String |
sendVerifySignature(String ontid,
int keyIndex,
Account acc) |
boolean |
verifyCredIssuanceDate(String cred) |
boolean |
verifyCredNotExpired(String cred) |
boolean |
verifyCredNotRevoked(String cred) |
boolean |
verifyCredOntIdCredible(String cred,
String[] credibleIds) |
boolean |
verifyCredSignature(String cred) |
boolean |
verifyMerkleProof(String merkleProof) |
boolean |
verifyOntIdClaim(String claim)
已过时。
|
public OntId(OntSdk sdk)
public String getContractAddress()
public String sendRegisterPreExec(String ontId, Account pk, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic String sendRegister(String ontId, Account pk, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeRegister(String ontid, byte[] pubKey, String payer, long gaslimit, long gasprice) throws Exception
ontid - payer - gasprice - Exceptionpublic String sendRegisterIdWithController(String ontId, Account[] controllerSigners, Group controller, Signer[] signers, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeRegisterIdWithController(String ontId, Group controller, Signer[] signers, String payer, long gaslimit, long gasprice) throws SDKException, IOException
public String sendRevokeId(String ontId, int index, Account pk, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeRevokeId(String ontId, int index, String payer, long gaslimit, long gasprice) throws SDKException, IOException
public String sendRevokeIdByController(String ontId, Signer[] signers, Account[] controllerSigners, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeRevokeIdByController(String ontId, Signer[] signers, String payer, long gaslimit, long gasprice) throws SDKException, IOException
public String sendRemoveController(String ontId, int index, Account pk, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeRemoveController(String ontId, int index, String payer, long gaslimit, long gasprice) throws SDKException, IOException
public String sendRegisterWithAttrs(String ontId, Attribute[] attributes, Account pk, Account payerAcct, long gaslimit, long gasprice) throws Exception
attributes - payerAcct - gaslimit - gasprice - Exceptionpublic Transaction makeRegisterWithAttrs(String ontid, byte[] publickey, Attribute[] attributes, String payer, long gaslimit, long gasprice) throws Exception
ontid - attributes - payer - gaslimit - gasprice - Exceptionpublic String sendGetPublicKeys(String ontid) throws Exception
ontid - Exceptionpublic String sendGetKeyState(String ontid, int index) throws Exception
ontid - Exceptionpublic String sendAddPubKey(String ontid, Account pk, byte[] newPubKey, String controller, Account payerAcct, long gaslimit, long gasprice) throws Exception
ontid - payerAcct - gaslimit - gasprice - Exceptionpublic Transaction makeAddPubKey(String ontid, byte[] newPubKey, byte[] pubKey, String controller, String payer, long gaslimit, long gasprice) throws Exception
ontid - payer - gaslimit - gasprice - Exceptionpublic String sendAddKeyByIndex(String ontid, Account pk, byte[] newPubKey, int index, String controller, Account payerAcct, long gaslimit, long gasprice) throws Exception
ontid - pk - newPubKey - index - controller - payerAcct - gaslimit - gasprice - Exceptionpublic Transaction makeAddKeyByIndex(String ontid, byte[] newPubKey, int index, String controller, String payer, long gaslimit, long gasprice) throws Exception
ontid - payer - gaslimit - gasprice - Exceptionpublic String sendRemoveKeyByIndex(String ontid, Account pk, byte[] removePubkey, int index, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeRemoveKeyByIndex(String ontid, byte[] removePubKey, int index, String payer, long gaslimit, long gasprice) throws Exception
ontid - payer - gaslimit - gasprice - Exceptionpublic String sendAddKeyByController(String ontid, byte[] pubkey, Signer[] signers, String controller, Account[] controllerSigner, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeAddKeyByController(String ontid, byte[] pubKey, Signer[] signers, String controller, String payer, long gaslimit, long gasprice) throws Exception
ontid - payer - gaslimit - gasprice - Exceptionpublic String sendRemoveKeyByController(String ontid, int pubkeyIndex, Signer[] signers, Account[] controllerSigner, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeRemoveKeyByController(String ontid, int pubKeyIndex, Signer[] signers, String payer, long gaslimit, long gasprice) throws Exception
ontid - payer - gaslimit - gasprice - Exceptionpublic String sendAddKeyByRecovery(String ontid, byte[] pubkey, Signer[] signers, String controller, Account[] recoverySigners, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeAddKeyByRecovery(String ontid, byte[] pubKey, Signer[] signers, String controller, String payer, long gaslimit, long gasprice) throws Exception
ontid - payer - gaslimit - gasprice - Exceptionpublic String sendRemoveKeyByRecovery(String ontid, int pubkeyIndex, Signer[] signers, Account[] recoverySigners, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeRemoveKeyByRecovery(String ontid, int pubKeyIndex, Signer[] signers, String payer, long gaslimit, long gasprice) throws Exception
ontid - payer - gaslimit - gasprice - Exceptionpublic String sendRemovePubKey(String ontid, byte[] removePubkey, Account pk, Account payerAcct, long gaslimit, long gasprice) throws Exception
ontid - removePubkey - payerAcct - gaslimit - gasprice - Exceptionpublic Transaction makeRemovePubKey(String ontid, byte[] removePubkey, byte[] pubKey, String payer, long gaslimit, long gasprice) throws Exception
ontid - removePubkey - payer - gaslimit - gasprice - Exceptionpublic String sendSetRecovery(String ontid, Group recovery, int index, Account pk, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeSetRecovery(String ontid, Group recovery, int index, String payer, long gaslimit, long gasprice) throws Exception
ontid - payer - gasprice - Exceptionpublic String sendUpdateRecovery(String ontid, Group newRecovery, Signer[] signers, Account[] recoverySigners, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeUpdateRecovery(String ontid, Group newRecovery, Signer[] signers, String payer, long gaslimit, long gasprice) throws Exception
ontid - payer - gasprice - Exceptionpublic String sendRemoveRecovery(String ontid, int index, Account pkAcc, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeRemoveRecovery(String ontid, int index, String payer, long gaslimit, long gasprice) throws Exception
ontid - payer - gasprice - Exceptionpublic String sendAddAttributes(String ontid, Attribute[] attributes, Account pk, Account payerAcct, long gaslimit, long gasprice) throws Exception
ontid - attributes - payerAcct - gaslimit - gasprice - Exceptionpublic Transaction makeAddAttributes(String ontid, Attribute[] attributes, byte[] pk, String payer, long gaslimit, long gasprice) throws Exception
ontid - attributes - payer - gasprice - Exceptionpublic String sendAddAttributesByIndex(String ontid, Attribute[] attributes, int index, Account pk, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeAddAttributesByIndex(String ontid, Attribute[] attributes, int index, String payer, long gaslimit, long gasprice) throws Exception
ontid - attributes - payer - gasprice - Exceptionpublic String sendRemoveAttributeByIndex(String ontid, byte[] removeKey, int index, Account pk, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeRemoveAttributeByIndex(String ontid, byte[] removeKey, int index, String payer, long gaslimit, long gasprice) throws Exception
ontid - payer - gasprice - Exceptionpublic String sendRemoveAttribute(String ontid, byte[] removeKey, Account pk, Account payerAcct, long gaslimit, long gasprice) throws Exception
ontid - payerAcct - gaslimit - gasprice - Exceptionpublic Transaction makeRemoveAttribute(String ontid, byte[] removeKey, byte[] pk, String payer, long gaslimit, long gasprice) throws Exception
ontid - payer - gasprice - Exceptionpublic String sendAddAttributesByController(String ontid, Attribute[] attributes, Signer[] signers, Account[] controllerSigners, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeAddAttributesByController(String ontid, Attribute[] attributes, Signer[] signers, String payer, long gaslimit, long gasprice) throws Exception
ontid - attributes - payer - gasprice - Exceptionpublic String sendRemoveAttributesByController(String ontid, byte[] key, Signer[] signers, Account[] controllerSigners, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeRemoveAttributesByController(String ontid, byte[] key, Signer[] signers, String payer, long gaslimit, long gasprice) throws Exception
ontid - payer - gasprice - Exceptionpublic String sendAddNewAuthKey(String ontid, byte[] pubKey, String controller, int signIndex, Account pk, Account payerAcct, long gaslimit, long gasprice) throws Exception
ontid - pubKey - controller - signIndex - pk - payerAcct - gaslimit - gasprice - Exceptionpublic Transaction makeAddNewAuthKey(String ontid, byte[] pubKey, String controller, int signIndex, String payer, long gaslimit, long gasprice) throws Exception
ontid - payer - gasprice - Exceptionpublic String sendRemoveAuthKey(String ontid, int index, int signedIndex, Account pk, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeRemoveAuthKey(String ontid, int index, int signIndex, String payer, long gaslimit, long gasprice) throws Exception
ontid - payer - gasprice - Exceptionpublic String sendRemoveAuthKeyByRecovery(String ontid, int index, Signer[] signers, Account pk, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeRemoveAuthKeyByRecovery(String ontid, int index, Signer[] signers, String payer, long gaslimit, long gasprice) throws Exception
ontid - payer - gasprice - Exceptionpublic String sendRemoveAuthKeyByController(String ontid, int index, Signer[] signers, Account pk, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeRemoveAuthKeyByController(String ontid, int index, Signer[] signers, String payer, long gaslimit, long gasprice) throws Exception
ontid - payer - gasprice - Exceptionpublic String sendAddNewAuthKeyByRecovery(String ontid, byte[] pubKey, String controller, Signer[] signers, Account pk, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeAddNewAuthKeyByRecovery(String ontid, byte[] pubKey, String controller, Signer[] signers, String payer, long gaslimit, long gasprice) throws Exception
ontid - payer - gasprice - Exceptionpublic String sendSetAuthKeyByRecovery(String ontid, int index, Signer[] signers, Account pk, Account payerAcct, long gaslimit, long gasprice) throws Exception
ontid - index - signers - pk - recovery accountpayerAcct - gaslimit - gasprice - Exceptionpublic Transaction makeSetAuthKeyByRecovery(String ontid, int index, Signer[] signers, String payer, long gaslimit, long gasprice) throws Exception
ontid - payer - gasprice - Exceptionpublic String sendAddNewAuthKeyByController(String ontid, byte[] pubKey, String controller, Signer[] signers, Account pk, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeAddNewAuthKeyByController(String ontid, byte[] pubKey, String controller, Signer[] signers, String payer, long gaslimit, long gasprice) throws Exception
ontid - payer - gasprice - Exceptionpublic String sendSetAuthKeyByController(String ontid, int index, Signer[] signers, Account pk, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeSetAuthKeyByController(String ontid, int index, Signer[] signers, String payer, long gaslimit, long gasprice) throws Exception
ontid - payer - gasprice - Exceptionpublic String sendAddService(String ontid, byte[] serviceId, byte[] type, byte[] serviceEndpint, int index, Account pk, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeAddService(String ontid, byte[] serviceId, byte[] type, byte[] serviceEndpint, int index, String payer, long gaslimit, long gasprice) throws Exception
ontid - payer - gasprice - Exceptionpublic String sendUpdateService(String ontid, byte[] serviceId, byte[] type, byte[] serviceEndpint, int index, Account pk, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeUpdateService(String ontid, byte[] serviceId, byte[] type, byte[] serviceEndpint, int index, String payer, long gaslimit, long gasprice) throws Exception
ontid - payer - gasprice - Exceptionpublic String sendRemoveService(String ontid, byte[] serviceId, int index, Account pk, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeRemoveService(String ontid, byte[] serviceId, int index, String payer, long gaslimit, long gasprice) throws Exception
ontid - payer - gasprice - Exceptionpublic String sendAddContext(String ontid, byte[][] contexts, int index, Account pk, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeAddContext(String ontid, byte[][] contexts, int index, String payer, long gaslimit, long gasprice) throws Exception
ontid - payer - gasprice - Exceptionpublic String sendRemoveContext(String ontid, byte[][] contexts, int index, Account pk, Account payerAcct, long gaslimit, long gasprice) throws Exception
Exceptionpublic Transaction makeRemoveContext(String ontid, byte[][] contexts, int index, String payer, long gaslimit, long gasprice) throws Exception
ontid - payer - gasprice - Exceptionpublic String sendVerifySignature(String ontid, int keyIndex, Account acc) throws Exception
Exceptionpublic String sendVerifyController(String ontid, Signer[] signers, Account[] accounts) throws Exception
Exceptionpublic String sendGetService(String ontid, byte[] serviceId) throws Exception
Exceptionpublic Object getMerkleProof(String txhash) throws Exception
txhash - Exceptionpublic boolean verifyMerkleProof(String merkleProof) throws Exception
merkleProof - Exceptionpublic String createOntIdClaim(String signerOntid, Account pkAcc, String context, Map<String,Object> claimMap, Map metaData, Map clmRevMap, long expire) throws Exception
signerOntid - context - claimMap - metaData - clmRevMap - expire - Exceptionpublic boolean verifyOntIdClaim(String claim) throws Exception
claim - Exceptionpublic boolean verifyCredOntIdCredible(String cred, String[] credibleIds) throws Exception
Exceptionpublic boolean verifyCredNotExpired(String cred) throws Exception
Exceptionpublic boolean verifyCredIssuanceDate(String cred) throws Exception
Exceptionpublic boolean verifyCredNotRevoked(String cred) throws Exception
ExceptionCopyright © 2022. All rights reserved.