lib/stellar/key_pair.rb in stellar-base-0.1.2 vs lib/stellar/key_pair.rb in stellar-base-0.1.3
- old
+ new
@@ -25,9 +25,13 @@
secret_key = RbNaCl::SigningKey.generate
public_key = secret_key.verify_key
new(public_key, secret_key)
end
+ def self.master
+ from_raw_seed("allmylifemyhearthasbeensearching")
+ end
+
def initialize(public_key, secret_key=nil)
@public_key = public_key
@secret_key = secret_key
end