Secp256k1Program.fromBytes constructor

Secp256k1Program.fromBytes({
  1. required List<AccountMeta> keys,
  2. required List<int> instructionBytes,
  3. SolAddress programId = Secp256k1ProgramConst.programId,
})

Implementation

factory Secp256k1Program.fromBytes({
  required List<AccountMeta> keys,
  required List<int> instructionBytes,
  SolAddress programId = Secp256k1ProgramConst.programId,
}) {
  return Secp256k1Program._(
      layout: Secp256k1Layout.fromBuffer(instructionBytes),
      keys: keys,
      programId: programId);
}