Sha256: b02793403d7ee2b5d1b0611b8c99e6237a1ce51f5f0f2f1e8ab596989bda686a
Contents?: true
Size: 335 Bytes
Versions: 3
Compression:
Stored size: 335 Bytes
Contents
module Exonum module Random def self.generate_seed SecureRandom.random_bytes(16).unpack('Q<').first end def self.generate_keypair key = Ed25519::SigningKey.generate { public: key.verify_key.to_bytes.unpack('H*').first, private: key.to_bytes.unpack('H*').first } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
exonum-client-ruby-0.0.4 | lib/exonum/util/random.rb |
exonum-client-ruby-0.0.3 | lib/exonum/util/random.rb |
exonum-client-ruby-0.0.2 | lib/exonum/util/random.rb |