createChain
Last updated
Last updated
• Docs
/ / createChain
createChain<
M
>(arg0
,signer
,hasher
):Promise
<Chain
<M
>>
Create a new chain
Note: The only supported hash function is SHA3-512 at the moment
M
extends AnyMap
arg0
undefined
The chain content
signer
Signer
undefined
The signer
hasher
MultihashHasher
<number
>
sha3512
The hasher
Promise
<Chain
<M
>>
The chain as a Twine object
<object
| M
>