Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
geraldb committed Dec 9, 2022
1 parent d6853ed commit 85a8e34
Show file tree
Hide file tree
Showing 65 changed files with 3,588 additions and 31 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,18 @@ Gems:

<!-- break -->

- [digest-lite](digest-lite) - crypto(graphic) hash functions / classes - Digest::KeccakLite (512bit, 256bit, etc), Digest::SHA3Lite (512bit, 256bit, etc) in "100% pure" ruby "lite" scripts, that is, without any c-extensions and with zero-dependency
- [crypto-lite](crypto-lite) - cryptographic secure hash functions and public key signature algorithms made easy
- [base32-alphabets](base32-alphabets) - base32 encoding / decoding in 5-bit groups (2^5=32) with kai, crockford or electrologica notations / alphabets
- [base58-alphabets](base58-alphabets) - base58 encoding / decoding numbers, hex or binary strings (incl. leading zeros) with bitcoin or flickr notations / alphabets
- [elliptic](elliptic) - elliptic curve digital signature algorithm (ECDSA) cryptography with OpenSSL made easy (incl. secp256k1 curve)
- [digest-lite](digest-lite) - crypto(graphic) hash functions / classes - Digest::KeccakLite (512bit, 256bit, etc), Digest::SHA3Lite (512bit, 256bit, etc) in "100% pure" ruby "lite" scripts, that is, without any c-extensions and with zero-dependency
- [rlp-lite](rlp-lite) - light-weight ("lite") machinery to serialize / deserialze using the recursive-length prefix (rlp) scheme


<!-- break -->

- [ethlite](ethlite) - light-weight machinery to query / call ethereum (blockchain contract) services via json-rpc (incl. tuple support)



<!-- break -->
Expand Down
4 changes: 2 additions & 2 deletions base32-alphabets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Encode / decode numbers in 5-bit groups (2^5=32)
with Kai, Crockford or Electrologica notation / alphabet


* home :: [github.com/rubycoco/blockchain](https://github.com/rubycoco/blockchain)
* bugs :: [github.com/rubycoco/blockchain/issues](https://github.com/rubycoco/blockchain/issues)
* home :: [github.com/rubycocos/blockchain](https://github.com/rubycocos/blockchain)
* bugs :: [github.com/rubycocos/blockchain/issues](https://github.com/rubycocos/blockchain/issues)
* gem :: [rubygems.org/gems/base32-alphabets](https://rubygems.org/gems/base32-alphabets)
* rdoc :: [rubydoc.info/gems/base32-alphabets](http://rubydoc.info/gems/base32-alphabets)

Expand Down
2 changes: 1 addition & 1 deletion base32-alphabets/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Hoe.spec 'base32-alphabets' do
self.summary = "base32-alphabets - base32 (2^5) encoding / decoding in 5-bit groups with kai, crockford or electrologica notation / alphabet"
self.description = summary

self.urls = { home: 'https://github.com/rubycoco/blockchain' }
self.urls = { home: 'https://github.com/rubycocos/blockchain' }

self.author = 'Gerald Bauer'
self.email = '[email protected]'
Expand Down
4 changes: 2 additions & 2 deletions base58-alphabets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
Encode / decode numbers, hex or binary strings (incl. leading zeros) with Bitcoin or Flickr base58 notation / alphabet


* home :: [github.com/rubycoco/blockchain](https://github.com/rubycoco/blockchain)
* bugs :: [github.com/rubycoco/blockchain/issues](https://github.com/rubycoco/blockchain/issues)
* home :: [github.com/rubycocos/blockchain](https://github.com/rubycocos/blockchain)
* bugs :: [github.com/rubycocos/blockchain/issues](https://github.com/rubycocos/blockchain/issues)
* gem :: [rubygems.org/gems/base58-alphabets](https://rubygems.org/gems/base58-alphabets)
* rdoc :: [rubydoc.info/gems/base58-alphabets](http://rubydoc.info/gems/base58-alphabets)

Expand Down
2 changes: 1 addition & 1 deletion base58-alphabets/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Hoe.spec 'base58-alphabets' do
self.summary = "base58-alphabets - base58 encoding / decoding numbers, hex or binary strings (incl. leading zeros) with bitcoin or flickr notation / alphabet"
self.description = summary

self.urls = { home: 'https://github.com/rubycoco/blockchain' }
self.urls = { home: 'https://github.com/rubycocos/blockchain' }

self.author = 'Gerald Bauer'
self.email = '[email protected]'
Expand Down
4 changes: 2 additions & 2 deletions blockchain-lite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

blockchain-lite library / gem - build your own blockchain with crypto hashes - revolutionize the world with blockchains, blockchains, blockchains one block at a time

* home :: [github.com/rubycoco/blockchain](https://github.com/rubycoco/blockchain)
* bugs :: [github.com/rubycoco/blockchain/issues](https://github.com/rubycoco/blockchain/issues)
* home :: [github.com/rubycocos/blockchain](https://github.com/rubycocos/blockchain)
* bugs :: [github.com/rubycocos/blockchain/issues](https://github.com/rubycocos/blockchain/issues)
* gem :: [rubygems.org/gems/blockchain-lite](https://rubygems.org/gems/blockchain-lite)
* rdoc :: [rubydoc.info/gems/blockchain-lite](http://rubydoc.info/gems/blockchain-lite)

Expand Down
2 changes: 1 addition & 1 deletion blockchain-lite/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Hoe.spec 'blockchain-lite' do
self.summary = "blockchain-lite - build your own blockchain with crypto hashes - revolutionize the world with blockchains, blockchains, blockchains one block at a time"
self.description = summary

self.urls = { home: 'https://github.com/rubycoco/blockchain' }
self.urls = { home: 'https://github.com/rubycocos/blockchain' }

self.author = 'Gerald Bauer'
self.email = '[email protected]'
Expand Down
4 changes: 2 additions & 2 deletions centralbank/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ central bank library / gem and command line tool -
print your own money / cryptocurrency; run your own federated central bank nodes on the blockchain peer-to-peer over HTTP; revolutionize the world one block at a time


* home :: [github.com/rubycoco/blockchain](https://github.com/rubycoco/blockchain)
* bugs :: [github.com/rubycoco/blockchain/issues](https://github.com/rubycoco/blockchain/issues)
* home :: [github.com/rubycocos/blockchain](https://github.com/rubycocos/blockchain)
* bugs :: [github.com/rubycocos/blockchain/issues](https://github.com/rubycocos/blockchain/issues)
* gem :: [rubygems.org/gems/centralbank](https://rubygems.org/gems/centralbank)
* rdoc :: [rubydoc.info/gems/centralbank](http://rubydoc.info/gems/centralbank)

Expand Down
2 changes: 1 addition & 1 deletion centralbank/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Hoe.spec 'centralbank' do
self.summary = 'centralbank - print your own money / cryptocurrency; run your own federated central bank nodes on the blockchain peer-to-peer over HTTP; revolutionize the world one block at a time'
self.description = summary

self.urls = { home: 'https://github.com/rubycoco/blockchain' }
self.urls = { home: 'https://github.com/rubycocos/blockchain' }

self.author = 'Gerald Bauer'
self.email = '[email protected]'
Expand Down
4 changes: 2 additions & 2 deletions crypto-lite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@



* home :: [github.com/rubycoco/blockchain](https://github.com/rubycoco/blockchain)
* bugs :: [github.com/rubycoco/blockchain/issues](https://github.com/rubycoco/blockchain/issues)
* home :: [github.com/rubycocos/blockchain](https://github.com/rubycocos/blockchain)
* bugs :: [github.com/rubycocos/blockchain/issues](https://github.com/rubycocos/blockchain/issues)
* gem :: [rubygems.org/gems/crypto-lite](https://rubygems.org/gems/crypto-lite)
* rdoc :: [rubydoc.info/gems/crypto-lite](http://rubydoc.info/gems/crypto-lite)

Expand Down
2 changes: 1 addition & 1 deletion crypto-lite/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Hoe.spec 'crypto-lite' do
self.summary = "crypto-lite - cryptographic secure hash functions and public key signature algorithms made easy"
self.description = summary

self.urls = { home: 'https://github.com/rubycoco/blockchain' }
self.urls = { home: 'https://github.com/rubycocos/blockchain' }

self.author = 'Gerald Bauer'
self.email = '[email protected]'
Expand Down
4 changes: 2 additions & 2 deletions cryptoquotes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Yes, but what if there's only 21 million of it?
cryptoquotes library / gem - incl. oracle tool to get a random crypto quote of the day on the command line - on the new new "in math we trust" ponzi economics - on get-rich-quick blockchain secrets - on bitcon maximalists, scammers, morons, clowns, shills & bagHODLers and more


* home :: [github.com/rubycoco/blockchain](https://github.com/rubycoco/blockchain)
* bugs :: [github.com/rubycoco/blockchain/issues](https://github.com/rubycoco/blockchain/issues)
* home :: [github.com/rubycocos/blockchain](https://github.com/rubycocos/blockchain)
* bugs :: [github.com/rubycocos/blockchain/issues](https://github.com/rubycocos/blockchain/issues)
* gem :: [rubygems.org/gems/cryptoquotes](https://rubygems.org/gems/cryptoquotes)
* rdoc :: [rubydoc.info/gems/cryptoquotes](http://rubydoc.info/gems/cryptoquotes)

Expand Down
2 changes: 1 addition & 1 deletion cryptoquotes/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Hoe.spec 'cryptoquotes' do
self.summary = "cryptoquotes - incl. oracle tool to get a random crypto quote of the day on the command line - on the new new 'in math we trust' ponzi economics - on get-rich-quick blockchain secrets - on bitcon maximalists, scammers, morons, clowns, shills & bagHODLers and more"
self.description = summary

self.urls = { home: 'https://github.com/rubycoco/blockchain' }
self.urls = { home: 'https://github.com/rubycocos/blockchain' }

self.author = 'Gerald Bauer'
self.email = '[email protected]'
Expand Down
4 changes: 2 additions & 2 deletions digest-lite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ digest-lite gem - crypto(graphic) hash functions / classes - Digest::KeccakLite



* home :: [github.com/rubycoco/blockchain](https://github.com/rubycoco/blockchain)
* bugs :: [github.com/rubycoco/blockchain/issues](https://github.com/rubycoco/blockchain/issues)
* home :: [github.com/rubycocos/blockchain](https://github.com/rubycocos/blockchain)
* bugs :: [github.com/rubycocos/blockchain/issues](https://github.com/rubycocos/blockchain/issues)
* gem :: [rubygems.org/gems/digest-lite](https://rubygems.org/gems/digest-lite)
* rdoc :: [rubydoc.info/gems/digest-lite](http://rubydoc.info/gems/digest-lite)

Expand Down
2 changes: 1 addition & 1 deletion digest-lite/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Hoe.spec 'digest-lite' do
self.summary = 'digest-lite - crypto(graphic) hash functions / classes - Digest::KeccakLite (512bit, 256bit, etc), Digest::SHA3Lite (512bit, 256bit, etc) in "100% pure" ruby "lite" scripts, that is, without any c-extensions and with zero-dependency'
self.description = summary

self.urls = { home: 'https://github.com/rubycoco/blockchain' }
self.urls = { home: 'https://github.com/rubycocos/blockchain' }

self.author = 'Gerald Bauer'
self.email = '[email protected]'
Expand Down
4 changes: 2 additions & 2 deletions elliptic-lite/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# elliptic-lite - elliptic curve cryptography from scratch / zero - start with finite fields, add elliptic curve points and point addition and scalar multiplications, add the elliptic curve digital signature algorithm (ECDSA) using the secp256k1 curve / group to sign and verify messages and more


* home :: [github.com/rubycoco/blockchain](https://github.com/rubycoco/blockchain)
* bugs :: [github.com/rubycoco/blockchain/issues](https://github.com/rubycoco/blockchain/issues)
* home :: [github.com/rubycocos/blockchain](https://github.com/rubycocos/blockchain)
* bugs :: [github.com/rubycocos/blockchain/issues](https://github.com/rubycocos/blockchain/issues)
* gem :: [rubygems.org/gems/elliptic-lite](https://rubygems.org/gems/elliptic-lite)
* rdoc :: [rubydoc.info/gems/elliptic-lite](http://rubydoc.info/gems/elliptic-lite)

Expand Down
2 changes: 1 addition & 1 deletion elliptic-lite/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Hoe.spec 'elliptic-lite' do
self.summary = "elliptic-lite - elliptic curve cryptography from scratch / zero - start with finite fields, add elliptic curve points and point addition and scalar multiplications, add the elliptic curve digital signature algorithm (ECDSA) using the secp256k1 curve / group to sign and verify messages and more"
self.description = summary

self.urls = { home: 'https://github.com/rubycoco/blockchain' }
self.urls = { home: 'https://github.com/rubycocos/blockchain' }

self.author = 'Gerald Bauer'
self.email = '[email protected]'
Expand Down
4 changes: 2 additions & 2 deletions elliptic/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# elliptic - elliptic curve digital signature algorithm (ECDSA) cryptography with OpenSSL made easy (incl. secp256k1 curve)


* home :: [github.com/rubycoco/blockchain](https://github.com/rubycoco/blockchain)
* bugs :: [github.com/rubycoco/blockchain/issues](https://github.com/rubycoco/blockchain/issues)
* home :: [github.com/rubycocos/blockchain](https://github.com/rubycocos/blockchain)
* bugs :: [github.com/rubycocos/blockchain/issues](https://github.com/rubycocos/blockchain/issues)
* gem :: [rubygems.org/gems/elliptic](https://rubygems.org/gems/elliptic)
* rdoc :: [rubydoc.info/gems/elliptic](http://rubydoc.info/gems/elliptic)

Expand Down
2 changes: 1 addition & 1 deletion elliptic/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Hoe.spec 'elliptic' do
self.summary = "elliptic - elliptic curve digital signature algorithm (ECDSA) cryptography with OpenSSL made easy (incl. secp256k1 curve)"
self.description = summary

self.urls = { home: 'https://github.com/rubycoco/blockchain' }
self.urls = { home: 'https://github.com/rubycocos/blockchain' }

self.author = 'Gerald Bauer'
self.email = '[email protected]'
Expand Down
58 changes: 58 additions & 0 deletions ethlite/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
*.gem
*.rbc
/.config
/coverage/
/InstalledFiles
/pkg/
/spec/reports/
/test/tmp/
/test/version_tmp/
/tmp/

## Specific to RubyMotion:
.dat*
.repl_history
build/

## Documentation cache and generated files:
/.yardoc/
/_yardoc/
/doc/
/rdoc/

## Environment normalisation:
/.bundle/
/vendor/bundle
/lib/bundler/man/

# for a library or gem, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# Gemfile.lock
.ruby-version
.ruby-gemset

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc

# Gladiator (Glimmer Editor)
.gladiator
.DS_Store



####
# exclude all tmp & tmp2 and o directory (in all levels)
tmp/
tmp2/
o/

########
# exclude all dbs e.g. artbase.db etc.
*.db

######
# exclude all zips (in /dl)
*.zip



3 changes: 3 additions & 0 deletions ethlite/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### 0.0.1 / 2022-11-14

* Everything is new. First release
12 changes: 12 additions & 0 deletions ethlite/Manifest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
CHANGELOG.md
Manifest.txt
README.md
Rakefile
lib/ethlite.rb
lib/ethlite/abi/codec.rb
lib/ethlite/abi/type.rb
lib/ethlite/constant.rb
lib/ethlite/contract.rb
lib/ethlite/utils.rb
lib/ethlite/version.rb
lib/jsonrpc/jsonrpc.rb
17 changes: 17 additions & 0 deletions ethlite/NOTES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Notes Ethlite


### Ethlite Sources

- abi code initially based on <https://github.com/Bloxy-info/web3-eth>


refactor:

- move / use rlp from eth gem inline /in-place
and remove dependency on rlp gem - why? why not?

- move utils to "top-level" and merge all utils (utility) into one



Loading

0 comments on commit 85a8e34

Please sign in to comment.