Account Structure
Deriving Addresses from Public Key
import { bech32 } from 'bech32';
import { keccak256 } from 'ethereumjs-util';
export function deriveEniAddress(publicKey: Buffer): string {
const hash = keccak256(publicKey);
const words = bech32.toWords(hash.slice(0, 20));
return bech32.encode('eni', words);
}EVM Address Derivation
Summary
Why This Works
Next Steps
Last updated