@the-hashgraph-group-ag/cryptosuites-core / ProofCreator
Abstract Class: ProofCreator<ProofAlgorithms>
Defined in: packages/core/src/interfaces/proof-creator.ts:10
Abstract class for a proof creator.
Methods
attachSignature()
abstractattachSignature<Input>(inputDocument,proofConfig,proofBytes): link:../type-aliases/SecuredDataDocument.md<Input> |Promise<link:../type-aliases/SecuredDataDocument.md<Input>>
Defined in: packages/core/src/interfaces/proof-creator.ts:38
Attaches a signature to the input document.
canSign()
abstractcanSign(proofType):boolean
Defined in: packages/core/src/interfaces/proof-creator.ts:16
Checks if the proof creator can sign with the given proof type.
constructProof()
abstractconstructProof(proofConfig,proofBytes):Proof|Promise<link:../interfaces/Proof.md>
Defined in: packages/core/src/interfaces/proof-creator.ts:50
Constructs a proof from a signing request and a signature.
createSigningRequest()
abstractcreateSigningRequest<Input>(inputDocument,proofOptions): link:../interfaces/ProofSigningRequest.md<ProofAlgorithms> |Promise<link:../interfaces/ProofSigningRequest.md<ProofAlgorithms>>
Defined in: packages/core/src/interfaces/proof-creator.ts:24
Creates a signing request for the input document to create a proof.