@microsoft/useragent-sdk
Version:
SDK for building decentralized identity wallets and enterprise agents.
30 lines (29 loc) • 881 B
TypeScript
import { ICryptoToken } from '../crypto/protocols/ICryptoToken';
import { ICommitProtectedHeaders } from '@decentralized-identity/hub-common-js';
/**
* Class representing a protected commit.
*/
export default class ProtectedCommit {
private json;
constructor(json: ICryptoToken);
/**
* Returns the protected commit data in the Flattened JWS JSON Serialization.
*/
toFlattenedJson(): ICryptoToken;
/**
* Returns the decoded protected headers for this commit.
*/
getProtectedHeaders(): ICommitProtectedHeaders;
/**
* Returns the decoded payload for this commit.
*/
getPayload(): any;
/**
* Retrieves the revision ID for this commit.
*/
getRevision(): string;
/**
* Retrieves the ID of the object to which this commit belongs.
*/
getObjectId(): string;
}