module Secp256k1

Constants

ORDER
VERSION

Public Class Methods

context() click to toggle source
# File lib/secp256k1.rb, line 47
def self.context
  @context ||= secp256k1_context_create(0x301)
end
key_to_pointer(key) click to toggle source
# File lib/secp256k1.rb, line 51
def self.key_to_pointer(key)
  ptr = FFI::MemoryPointer.new(:uint8, 32)
  ptr.write_bytes(key)
  ptr
end