-
Method Summary
Modifier and Type |
Method |
Description |
java.lang.String |
createAensDelegationSignature(java.lang.String contractId) |
creates a delegation signature over "network id + account address + contract address"
(concatenated as byte arrays)
|
java.lang.String |
createAensDelegationSignature(java.lang.String contractId,
java.lang.String name) |
creates a delegation signature over "network id + account address + name hash + contract
address" (concatenated as byte arrays)
|
java.lang.String |
createOracleDelegationSignature(java.lang.String contractId) |
creates a delegation signature over "network id + account address + contract" (concatenated as
byte arrays)
|
java.lang.String |
createOracleDelegationSignature(java.lang.String contractId,
java.lang.String queryId) |
creates a delegation signature over "network id + oracle query id + contract address"
(concatenated as byte arrays)
|
java.lang.String |
getAensCommitmentHash(java.lang.String name,
java.math.BigInteger salt) |
for claiming names with contracts it is required to provide the commitmentHash for an aens name
|
-
Method Details
-
createAensDelegationSignature
java.lang.String createAensDelegationSignature(java.lang.String contractId)
creates a delegation signature over "network id + account address + contract address"
(concatenated as byte arrays)
- Parameters:
contractId
- the address of the contract (ct_...)
- Returns:
- the delegation signature that allows a contract to perform a preclaim for an AENS name
on behalf of the configured keypair
-
createAensDelegationSignature
java.lang.String createAensDelegationSignature(java.lang.String contractId,
java.lang.String name)
creates a delegation signature over "network id + account address + name hash + contract
address" (concatenated as byte arrays)
- Parameters:
contractId
- the address of the contract (ct_...)
name
- the AENS name (e.g. kryptokrauts.chain)
- Returns:
- the delegation signature that allows a contract to perform AENS related actions for a
specific name on behalf of the configured keypair
-
createOracleDelegationSignature
java.lang.String createOracleDelegationSignature(java.lang.String contractId)
creates a delegation signature over "network id + account address + contract" (concatenated as
byte arrays)
- Parameters:
contractId
- the address of the contract (ct_...)
- Returns:
- the delegation signature that allows a contract to create and extend an oracle on
behalf of the configured keypair
-
createOracleDelegationSignature
java.lang.String createOracleDelegationSignature(java.lang.String contractId,
java.lang.String queryId)
creates a delegation signature over "network id + oracle query id + contract address"
(concatenated as byte arrays)
- Parameters:
contractId
- the address of the contract (ct_...)
queryId
- the query id (oq_...)
- Returns:
- the delegation signature that allows a contract to respond to a specific query on
behalf of the configured (oracle) keypair
-
getAensCommitmentHash
java.lang.String getAensCommitmentHash(java.lang.String name,
java.math.BigInteger salt)
for claiming names with contracts it is required to provide the commitmentHash for an aens name
- Parameters:
name
- the AENS name to claim
salt
- the salt used in the pre-claim transaction
- Returns:
- the hash that needs to be wrapped in the `Hash` object (generated via
contraect-maven-plugin)