@microsoft/useragent-sdk
Version:
SDK for building decentralized identity wallets and enterprise agents.
19 lines (18 loc) • 830 B
TypeScript
import Identifier from '../Identifier';
import JwsToken from '../crypto/protocols/jose/jws/JwsToken';
export default class VerifyHelper {
/**
* Verify that Jwstoken was signed by the entity that
* owns the Identifier Document referenced by the senderId.
* @param sender the Identifier of the entity whose signature we are verifying.
* @param token the token that is being verified.
*/
static verify(sender: Identifier, token: JwsToken): Promise<boolean>;
/**
* Find Public Keys in an Identifier Document that
* match the ones specified in header/protected header of a signed token.
* @param token JWSToken whose signature needs to be matched
* @param document Identifer Document containing public keys
*/
private static findMatchingPublicKeys;
}