Class KeylessClient
- Namespace
- Aptos
- Assembly
- Aptos.dll
public class KeylessClient
- Inheritance
-
KeylessClient
- Inherited Members
-
Constructors
KeylessClient(AptosClient)
public KeylessClient(AptosClient client)
Parameters
client AptosClient
Methods
DeriveAccount(string, EphemeralKeyPair, string, byte[]?, AccountAddress?)
public Task<KeylessAccount> DeriveAccount(string jwt, EphemeralKeyPair ekp, string uidKey = "sub", byte[]? pepper = null, AccountAddress? jwkAddress = null)
Parameters
jwt string
ekp EphemeralKeyPair
uidKey string
pepper byte[]
jwkAddress AccountAddress
Returns
- Task<KeylessAccount>
GetConfigurationResource(ulong?)
public Task<KeylessConfiguration> GetConfigurationResource(ulong? ledgerVersion = null)
Parameters
ledgerVersion ulong?
Returns
- Task<KeylessConfiguration>
GetGroth16VerificationKey(ulong?)
public Task<Groth16VerificationKey> GetGroth16VerificationKey(ulong? ledgerVersion = null)
Parameters
ledgerVersion ulong?
Returns
- Task<Groth16VerificationKey>
GetKeylessConfig(ulong?)
public Task<(Groth16VerificationKey VerificationKey, ulong MaxExpHorizonSecs)> GetKeylessConfig(ulong? ledgerVersion = null)
Parameters
ledgerVersion ulong?
Returns
- Task<(Groth16VerificationKey VerificationKey, ulong MaxExpHorizonSecs)>
GetPepper(string, EphemeralKeyPair, string?, string?)
public Task<byte[]> GetPepper(string jwt, EphemeralKeyPair ekp, string? uidKey = "sub", string? derivationPath = null)
Parameters
jwt string
ekp EphemeralKeyPair
uidKey string
derivationPath string
Returns
- Task<byte[]>
GetProof(string, EphemeralKeyPair, byte[]?, string?)
public Task<ZeroKnowledgeSignature> GetProof(string jwt, EphemeralKeyPair ekp, byte[]? pepper = null, string? uidKey = "sub")
Parameters
jwt string
ekp EphemeralKeyPair
pepper byte[]
uidKey string
Returns
- Task<ZeroKnowledgeSignature>