Represents an Aptos Accounts.
An Aptos account is represented by an extended private key, a public key and it's authentication key.
More...
|
| Account () |
| Create a new Aptos Account.
|
|
| Account (string privateKey, string publicKey) |
| Initialize an account with a given private and public keys.
|
|
| Account (byte[] privateKey, byte[] publicKey) |
|
string | AuthKey () |
| Returns the Authentication Key for the associated account.
|
|
bool | Verify (byte[] message, Signature signature) |
| Verify a given signed message with the current account's public key.
|
|
Signature | Sign (byte[] message) |
| Sign a given byte array (data) with the current account's private key.
|
|
|
static Account | Generate () |
| Utility function to be in par with the other SDKs , otherwise use the default constructor Account().
|
|
static Account | LoadKey (string privateKeyHex) |
| Creates an account from private key in string format.
|
|
|
PrivateKey | PrivateKey [get, set] |
| Private key representation.
|
|
PublicKey | PublicKey [get, set] |
| Public key representation.
|
|
AccountAddress | AccountAddress [get, set] |
| Account address representation.
|
|
byte[] | PrivateKeyShort [get] |
| 32-byte representation of the private key.
|
|
Represents an Aptos Accounts.
An Aptos account is represented by an extended private key, a public key and it's authentication key.
◆ Account()
Aptos.Accounts.Account.Account |
( |
string |
privateKey, |
|
|
string |
publicKey |
|
) |
| |
|
inline |
Initialize an account with a given private and public keys.
- Parameters
-
privateKey | The private key. |
publicKey | The public key. |
◆ AuthKey()
string Aptos.Accounts.Account.AuthKey |
( |
| ) |
|
|
inline |
Returns the Authentication Key for the associated account.
- Returns
- String representation of the authentication key
◆ Generate()
static Account Aptos.Accounts.Account.Generate |
( |
| ) |
|
|
static |
Utility function to be in par with the other SDKs , otherwise use the default constructor Account().
- Returns
- A new account.
◆ LoadKey()
static Account Aptos.Accounts.Account.LoadKey |
( |
string |
privateKeyHex | ) |
|
|
inlinestatic |
Creates an account from private key in string format.
- Parameters
-
privateKeyHex | The private key. |
- Returns
- A new account.
◆ Sign()
Signature Aptos.Accounts.Account.Sign |
( |
byte[] |
message | ) |
|
Sign a given byte array (data) with the current account's private key.
- Parameters
-
The signature of the data.
- Returns
- The signature as an object
◆ Verify()
bool Aptos.Accounts.Account.Verify |
( |
byte[] |
message, |
|
|
Signature |
signature |
|
) |
| |
|
inline |
Verify a given signed message with the current account's public key.
- Parameters
-
message | The signed message. |
signature | The signature of the message. |
- Returns
- True is the signature is valid, False otherwise
The documentation for this class was generated from the following file:
- Aptos.Accounts/Account.cs