ethereumjs-monorepo

@ethereumjs/util


@ethereumjs/util / generateBinaryTreeCodeStems

Function: generateBinaryTreeCodeStems()

generateBinaryTreeCodeStems(numChunks, address, hashFunction): Uint8Array<ArrayBufferLike>[]

Defined in: packages/util/src/binaryTree.ts:325

Helper method for generating the code stems necessary for putting code

Parameters

numChunks

number

the number of code chunks to be put

address

Address

the address of the account getting the code

hashFunction

(input) => Uint8Array

an initialized BinaryTreeCrypto object

Returns

Uint8Array<ArrayBufferLike>[]

an array of stems for putting code