Credential
The authentication bundle attached to a transaction. Either a standard credential from the primary key or a session credential.
Definition
type Credential =
| { standard: StandardCredential }
| { session: SessionCredential }
type StandardCredential = {
keyHash: KeyHash
signature: Signature
}
type SessionCredential = {
sessionInfo: SigningSessionInfo
sessionSignature: Base64
authorization: StandardCredential
}Variants
standard — the user's primary key signed the transaction directly. signature is the raw signature; keyHash identifies which key was used.
session — a session key signed the transaction. authorization is the primary key's signature over sessionInfo, proving the session is authorized. sessionSignature is the session key's signature over the tx.