coin-op 0.2.3 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a9ce43055ee6773ee33ee1fab2f8e9baa54037c6
4
- data.tar.gz: 7f65ef4ef8ee00dfd6f078cd1c19e4e1460762e7
3
+ metadata.gz: 45dac9e7491f6421517aef93700c6063e977d752
4
+ data.tar.gz: f32da4cc0cfb9b004fff31a5523dd90c7ad5c847
5
5
  SHA512:
6
- metadata.gz: 4d7289100f2435176d5c3f5d9c49e2841a6b8c2cb237d26417f58cc743c1317853136df5fd8963c955124b3aa5b2ec19078b3c728d0ebee1f0ed968a69f45d48
7
- data.tar.gz: d88dc180ef2a80908657663cd928b9b0a6c32e641392d72cdc3b89f4987c84ec3178da5adb3b2a524a6175b145c8b27deb4be2c53d151dcaf80b899a246fc791
6
+ metadata.gz: c41d2028acf3753edf97b35d111c8d3bd1df92b02f5a9ba079c8d13fa89681f386bf3ceb8d0e96cefe18819913fc35f68c0e61a860977e32cf6a8d141824df64
7
+ data.tar.gz: f8b07a487c25628ba0af70f50a48f56a544ab3766a2d4186b92a31b4d86a4393042655fa0a83c96dc3b913d2cb7a68f2b44221797cff12b06dc7b69b1181e2d5
@@ -0,0 +1 @@
1
+ ����;�4����ug ��l���_���>6P,Be�i�ɮ,S=TQ'�Q��ͳΔY�A˶�<����L���M �}L��R��V&MP������,lŨv��Z�Y����pƗ�c��^�l���';$��}�o��Y�#�00��H3�*�l"b=s&`����O��s�{G/��U&�s�� J� �> \�o
@@ -0,0 +1 @@
1
+ zW����&oM.Rꌹ°5�Ş��!��m'G���.����a C�/v7 �{t˝H��+ ����V���,�OɓN�k��1�f�oV���x��.mK�^���-�,^�oH[#L�n��!�/�a������l4��'}�� A�Y�4+
@@ -169,12 +169,12 @@ module CoinOp::Bit
169
169
  # Takes a Transaction ready to be signed.
170
170
  #
171
171
  # Returns an Array of signature dictionaries.
172
- def signatures(transaction)
172
+ def signatures(transaction, names: [:primary])
173
173
  transaction.inputs.map do |input|
174
174
  path = input.output.metadata[:wallet_path]
175
175
  node = self.path(path)
176
176
  sig_hash = transaction.sig_hash(input, node.script)
177
- node.signatures(sig_hash)
177
+ node.signatures(sig_hash, names: names)
178
178
  end
179
179
  end
180
180
 
@@ -269,9 +269,10 @@ module CoinOp::Bit
269
269
  key.sign(value) + "\x01"
270
270
  end
271
271
 
272
- def signatures(value)
272
+ def signatures(value, names:)
273
273
  out = {}
274
274
  @keys.each do |name, key|
275
+ next unless names.include?(name)
275
276
  out[name] = base58(self.sign(name, value))
276
277
  end
277
278
  out
@@ -31,6 +31,7 @@ module CoinOp::Bit
31
31
  # Doing the rescue in case the input argument is a String.
32
32
  network_name = (options[:network] || :testnet3) rescue :testnet3
33
33
  @network = Bitcoin::NETWORKS[network_name]
34
+ Bitcoin.network = network_name
34
35
 
35
36
  # literals
36
37
  if options.is_a? String
@@ -1,5 +1,5 @@
1
1
  # Ruby bindings for libsodium, a port of DJB's NaCl crypto library
2
- require "rbnacl"
2
+ require "rbnacl/libsodium"
3
3
  require "openssl"
4
4
 
5
5
  module CoinOp
@@ -0,0 +1,3 @@
1
+ module CoinOp
2
+ VERSION = "0.3.0"
3
+ end
metadata CHANGED
@@ -1,14 +1,38 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coin-op
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew King
8
+ - Julian Vergel de Dios
9
+ - Dustin Laurence
10
+ - James Larisch
8
11
  autorequire:
9
12
  bindir: bin
10
- cert_chain: []
11
- date: 2015-01-30 00:00:00.000000000 Z
13
+ cert_chain:
14
+ - |
15
+ -----BEGIN CERTIFICATE-----
16
+ MIIDXDCCAkSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA6MQ8wDQYDVQQDDAZqdWxp
17
+ YW4xEzARBgoJkiaJk/IsZAEZFgNnZW0xEjAQ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xfk0vQdP7iYfjGxDzUf0FACMjsR95waJmadKW1Iy6STw2hwPhYIQz1Hu1A
34
+ -----END CERTIFICATE-----
35
+ date: 2015-05-04 00:00:00.000000000 Z
12
36
  dependencies:
13
37
  - !ruby/object:Gem::Dependency
14
38
  name: bitcoin-ruby
@@ -38,6 +62,34 @@ dependencies:
38
62
  - - "~>"
39
63
  - !ruby/object:Gem::Version
40
64
  version: '0.8'
65
+ - !ruby/object:Gem::Dependency
66
+ name: rbnacl-libsodium
67
+ requirement: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - "~>"
70
+ - !ruby/object:Gem::Version
71
+ version: '1.0'
72
+ type: :runtime
73
+ prerelease: false
74
+ version_requirements: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - "~>"
77
+ - !ruby/object:Gem::Version
78
+ version: '1.0'
79
+ - !ruby/object:Gem::Dependency
80
+ name: hashie
81
+ requirement: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - "~>"
84
+ - !ruby/object:Gem::Version
85
+ version: '2.0'
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - "~>"
91
+ - !ruby/object:Gem::Version
92
+ version: '2.0'
41
93
  - !ruby/object:Gem::Dependency
42
94
  name: starter
43
95
  requirement: !ruby/object:Gem::Requirement
@@ -94,11 +146,13 @@ dependencies:
94
146
  - - "~>"
95
147
  - !ruby/object:Gem::Version
96
148
  version: '1.0'
97
- description:
149
+ description: A pretty, simple to use interface for all of the cryptocurrency libraries
150
+ you love to use.
98
151
  email:
99
- - matthew@bitvault.io
100
- - dustin@bitvault.io
101
- - julian@bitvault.io
152
+ - automatthew@gmail.com
153
+ - julian@gem.co
154
+ - dustin@gem.co
155
+ - james@gem.co
102
156
  executables: []
103
157
  extensions: []
104
158
  extra_rdoc_files: []
@@ -118,7 +172,8 @@ files:
118
172
  - lib/coin-op/blockchain/mockchain.rb
119
173
  - lib/coin-op/crypto.rb
120
174
  - lib/coin-op/encodings.rb
121
- homepage: https://github.com/BitVault/coin-op
175
+ - lib/coin-op/version.rb
176
+ homepage: https://github.com/GemHQ/coin-op
122
177
  licenses:
123
178
  - MIT
124
179
  metadata: {}
Binary file