Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function computeDomain(domainType: DomainType, forkVersion: Version = Buffer.alloc(4)): Domain {
return Buffer.concat([
intToBytes(domainType, 4),
forkVersion,
]);
}