Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Secp256k1Program

Hierarchy

  • Secp256k1Program

Index

Properties

Static programId

programId: PublicKey = ...

Public key that identifies the secp256k1 program

Methods

Static createInstructionWithEthAddress

Static createInstructionWithPrivateKey

Static createInstructionWithPublicKey

Static publicKeyToEthAddress

  • publicKeyToEthAddress(publicKey: Buffer | Uint8Array | number[]): Buffer
  • Construct an Ethereum address from a secp256k1 public key buffer.

    Parameters

    • publicKey: Buffer | Uint8Array | number[]

      a 64 byte secp256k1 public key buffer

    Returns Buffer

Generated using TypeDoc