Sha256: e0f12186b0d1f592ef3330fe9e2ac0375933eea0c2e65f2040b0d149605ad12e

Contents?: true

Size: 982 Bytes

Versions: 2

Compression:

Stored size: 982 Bytes

Contents

Feature: One-Two-Three Contract

  Goal:
    * Used to demonstrate and test basic Vault Tree functionality
    * It nicely illustrates how vault keys can be arranged to enforce the terms of a contract 
    * If you are new to the Vault Tree Library it may be helpful to study the details of this contract
      to gain a better understanding of the core concepts.

  Ideas:
    * Bob sets up a simple Scavenger Hunt for Alice
    * He locks a Congratulations Message in the final vault
    * In order to get to the final message Alice needs to unlock the preceeding vaults with the
      appropriate keys

Scenario: Alice and Bob Execute the One Two Three Contract
  Given Alice has the blank contract
  When she locks all of her attributes
  And she sends the contract to Bob
  Then Bob can access all of her public attributes
  When Bob locks his attributes
  And He fills and locks each of the three main vaults
  Then Alice can execute the contract to recover the final message

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vault-tree-0.3.4 features/contracts/one_two_three.feature
vault-tree-0.3.3 features/contracts/one_two_three.feature