node_modules/@velas/solana-web3/lib/index.browser.esm.js
/**
   * Construct an Ethereum address from a secp256k1 public key buffer.
   * @param {Buffer} publicKey a 64 byte secp256k1 public key buffer
   */
Construct an Ethereum address from a secp256k1 public key buffer.
@param {Buffer} publicKey a 64 byte secp256k1 public key buffer
Construct an Ethereum address from a secp256k1 public key buffer . @param { Buffer } publicKey a 64 byte secp256k1 public key buffer
static publicKeyToEthAddress(publicKey) {
    assert$1(publicKey.length === PUBLIC_KEY_BYTES, "Public key must be ".concat(PUBLIC_KEY_BYTES, " bytes but received ").concat(publicKey.length, " bytes"));
    try {
      return buffer.Buffer.from(keccak_256.update(toBuffer(publicKey)).digest()).slice(-ETHEREUM_ADDRESS_BYTES);
    } catch (error) {
      throw new Error("Error constructing Ethereum address: ".concat(error));
    }
  }
static publicKeyToEthAddress ( publicKey ) { assert$1 ( publicKey . length === PUBLIC_KEY_BYTES , "Public key must be " . concat ( PUBLIC_KEY_BYTES , " bytes but received " ) . concat ( publicKey . length , " bytes" ) ) ; try { return buffer . Buffer . from ( keccak_256 . update ( toBuffer ( publicKey ) ) . digest ( ) ) . slice ( - ETHEREUM_ADDRESS_BYTES ) ; } catch ( error ) { throw new Error ( "Error constructing Ethereum address: " . concat ( error ) ) ; } }
Construct an Ethereum address from a secp256k1 public key buffer.
Construct an Ethereum address from a secp256k1 public key buffer .