Module: Secp256k1::C

Extended by:
FFI::Library
Included in:
Secp256k1
Defined in:
lib/secp256k1/c.rb

Overview

C interface

Class Method Summary collapse

Class Method Details

.ecdh_hash_function_defaultFFI::Pointer

Pointer to secp256k1_ecdh_hash_function_default constant.

Returns:

  • (FFI::Pointer)


111
112
113
# File 'lib/secp256k1/c.rb', line 111

def self.ecdh_hash_function_default
  FFI::Pointer.new(secp256k1_ecdh_hash_function_default)
end

.ecdh_hash_function_sha256FFI::Pointer

Pointer to secp256k1_ecdh_hash_function_sha256 constant (the default ECDH hash function).

Returns:

  • (FFI::Pointer)


105
106
107
# File 'lib/secp256k1/c.rb', line 105

def self.ecdh_hash_function_sha256
  FFI::Pointer.new(secp256k1_ecdh_hash_function_sha256)
end

.ellswift_xdh_hash_function_bip324FFI::Pointer

Pointer to secp256k1_ellswift_xdh_hash_function_bip324 constant.

Returns:

  • (FFI::Pointer)


99
100
101
# File 'lib/secp256k1/c.rb', line 99

def self.ellswift_xdh_hash_function_bip324
  FFI::Pointer.new(secp256k1_ellswift_xdh_hash_function_bip324)
end