node_modules/@velas/solana-web3/lib/index.browser.esm.js
/**
   * Derive a public key from another key, a seed, and a program ID.
   */
Derive a public key from another key, a seed, and a program ID.
Derive a public key from another key a seed and a program ID .
static async createWithSeed(fromPublicKey, seed, programId) {
    const buffer$1 = buffer.Buffer.concat([fromPublicKey.toBuffer(), buffer.Buffer.from(seed), programId.toBuffer()]);
    const hash = await sha256(new Uint8Array(buffer$1));
    return new PublicKey(buffer.Buffer.from(hash, 'hex'));
  }
static async createWithSeed ( fromPublicKey , seed , programId ) { const buffer$1 = buffer . Buffer . concat ( [ fromPublicKey . toBuffer ( ) , buffer . Buffer . from ( seed ) , programId . toBuffer ( ) ] ) ; const hash = await sha256 ( new Uint8Array ( buffer$1 ) ) ; return new PublicKey ( buffer . Buffer . from ( hash , 'hex' ) ) ; }
Derive a public key from another key, a seed, and a program ID.
Derive a public key from another key a seed and a program ID .