How to use the @chainsafe/lodestar/lib/util/bytes.intToBytes function in @chainsafe/lodestar

To help you get started, weโ€™ve selected a few @chainsafe/lodestar examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ChainSafe / lodestar / packages / eth2.0-state-transition / src / util / domain.ts View on Github external
export function computeDomain(domainType: DomainType, forkVersion: Version = Buffer.alloc(4)): Domain {
  return Buffer.concat([
    intToBytes(domainType, 4),
    forkVersion,
  ]);
}

@chainsafe/lodestar

Command line interface for lodestar

LGPL-3.0
Latest version published 1 month ago

Package Health Score

78 / 100
Full package analysis