Module: TokenChain

Defined in:
lib/token_chain.rb,
lib/token_chain/anchor.rb,
lib/token_chain/emitter.rb,
lib/token_chain/version.rb,
lib/token_chain/receiver.rb,
lib/token_chain/generator.rb,
lib/token_chain/emittable_token.rb,
lib/token_chain/receivable_token.rb

Defined Under Namespace

Modules: Anchor Classes: EmittableToken, Emitter, Generator, InvalidTokenError, ReceivableToken, Receiver, UnknownTokenError

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.from_anchor(anchor_code, last_code = nil) ⇒ Object



14
15
16
# File 'lib/token_chain.rb', line 14

def from_anchor anchor_code, last_code=nil
  Generator.new anchor_code, last_code
end

.from_passphrase(passphrase) ⇒ Object



9
10
11
12
# File 'lib/token_chain.rb', line 9

def from_passphrase passphrase
  anchor_code = Anchor.from passphrase
  Generator.new anchor_code
end