toip.tools

function · Browser and Node

makeReceipt

A witness receipt. KEL events: a KERI rct with a -B indexed signature over the event (index = position in the witness list). Trail messages: a trc with its own time, and a -C couple over the trc.

@toip-tools/eventlogView source
TypeScriptImport
import { makeReceipt } from "@toip-tools/eventlog";

Declaration

TypeScriptSignature
makeReceipt(msg: SignedMessage, signer: Signer, opts: {
    index?: number;
    dt: string;
}): Promise<SignedMessage>;

Parameters

msgrequired
SignedMessage
signerrequired
Signer
optsrequired
{ index?: number; dt: string; }
Fields of opts
indexoptional
number | undefined
dtrequired
string

Returns

Promise<SignedMessage>