index
@twine-protocol/twine-builder
Example
const signer = await JoseSigner.fromRandomness('RS256', { modulusLength: 2048 })
const chain = await createChain({ source: 'some-service.com', links_radix: 3 }, signer)
await chain.verifySignature() // should not throw
const first = await createPulse(chain, false, {
foo: 'some data',
}, signer)
await first.verifySignature(chain) // should not throw
const previous = first
const next = await createPulse(chain, previous, {
foo: 'some more data',
}, signer)
// etc...Interfaces
Interface
Description
Functions
Function
Description
Signer
Class
Description
Last updated