@twine-protocol/twine-builder v0.1.0 • Docs
twine-js / @twine-protocol/twine-builder / createChain
createChain<M>(arg0, signer, hasher): Promise<Chain<M>>
M
arg0
signer
hasher
Promise
Chain
Create a new chain
Note: The only supported hash function is SHA3-512 at the moment
M extends AnyMap
AnyMap
UnsanitizedChainContent<object | M>
UnsanitizedChainContent
object
undefined
The chain content
Signer
The signer
MultihashHasher<number>
MultihashHasher
number
sha3512
The hasher
Promise<Chain<M>>
The chain as a Twine object
factory.ts:85arrow-up-right
Last updated 1 year ago