Sha256: ad313ca155fa05f9e4a3a206205cc83726b97b3d1145e0ee54631a092f017195
Contents?: true
Size: 429 Bytes
Versions: 3
Compression:
Stored size: 429 Bytes
Contents
require "platon" puts "Example : generate key , print address and private_key" while true puts "" puts "Press any key to Generate keys.." STDIN.readline key = Platon::Key.new puts "Address on PlatON: #{key.bech32_address(hrp: "lat")}" puts "Address on Alaya: #{key.bech32_address(hrp: "atp")}" puts "EIP55 address: #{key.address}" puts "PrivateKey: #{key.private_hex}" puts "====================================" end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
platon-1.0.1 | examples/generate_keys.rb |
platon-1.0.0 | examples/generate_keys.rb |
platon-0.2.9 | examples/generate_keys.rb |