glueby 0.12.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 959a9d1dfbdea6b4b18e969b07399a9228fce31e80c7defcb9c393b71df1607b
4
- data.tar.gz: efe95c4c0ef08692d30fb1ff9dfeeea13d777f809d71f19d329b9b50d4406a31
3
+ metadata.gz: 660935ed3cb303d6c9f73b27fffd978f048365e60b701b598b0fa0384ceff8ad
4
+ data.tar.gz: 02d01a50fb301290ee693eb02b9592d193f6a8a10b5fb4cbb5419bc1ab01a41a
5
5
  SHA512:
6
- metadata.gz: 66f61489f313fcaf4c3fe22486cd2e13307a9b9ab78e9a47a1f61e60928d65455b0691c52f3e3461930f052d41e53c7c5a5f57ff7eab12ed52b95025c89e52ba
7
- data.tar.gz: 744f83c4d6211e7643f21f53d823490cc9e0235bd318f603c1b1a08e8cfda70d1e23a328287457b3591dc57ed9079e8b47ac150f546b5c56576c3228bf98d58a
6
+ metadata.gz: efc0bed86713965cc63cd747fc4477a825ff9e715ef9d95c5dfed1c42b2622e090cc3d3d85f1feef715bc497081269c2315c683bf8b0c9d90b975b04b310f69a
7
+ data.tar.gz: 3c2c5295abd8782850eaa1a901b44d901eaf088d3666eab918ce43992e5c5a9c5091583147511d8cfd5286351de8095eae2f4ae1163386088578717b2a199da7
@@ -25,7 +25,11 @@ module Glueby
25
25
  @prefix = prefix
26
26
  @data = data
27
27
 
28
- @txb.data(prefix + data)
28
+ contents = [prefix, data].map do |content|
29
+ content.bytes.map { |i| i.to_s(16) }.join
30
+ end
31
+
32
+ @txb.data(*contents)
29
33
  self
30
34
  end
31
35
 
@@ -18,10 +18,10 @@ module Glueby
18
18
  attr_reader :p2c_address, :payment_base
19
19
 
20
20
  # @param [Gleuby::Wallet] wallet The wallet that is sender of the timestamp transaction.
21
- # @param [String] content Data to be hashed and stored in blockchain.
21
+ # @param [String] content The data to be hashed(it is due to digest argument) and stored in blockchain.
22
22
  # @param [String] prefix prefix of op_return data
23
23
  # @param [Glueby::Contract::FeeEstimator] fee_estimator
24
- # @param [Symbol] digest type which select of:
24
+ # @param [Symbol] digest The types which will be used for process the content argument. Select of:
25
25
  # - :sha256
26
26
  # - :double_sha256
27
27
  # - :none
@@ -1,3 +1,3 @@
1
1
  module Glueby
2
- VERSION = "0.12.0"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glueby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - azuchi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-18 00:00:00.000000000 Z
11
+ date: 2022-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tapyrus