Skip to content

Releases: q9f/bip39.cr

lib bip39.cr v0.1.1

03 Aug 14:32
@q9f q9f
v0.1.1
d8e8ce6
Compare
Choose a tag to compare

lib bip39.cr v0.1.1 is a service release that fixes shard compatibility with crystal 1.5.0.

what's changed

  • docs: regenerate for release 0.1.0 by @q9f in #6
  • docs: fix html link in readme by @q9f in #7
  • util: fix dict path issue. by @zw963 in #9
  • shard: bump version by @q9f in #10

new contributors

  • @zw963 made their first contribution in #9

full changelog: v0.1.0...v0.1.1

lib bip39.cr v0.1.0

31 Oct 16:35
@q9f q9f
v0.1.0
ba69776
Compare
Choose a tag to compare

initial release of lib bip39.cr - a native library implementing bip-0039 mnemonics purely for the crystal language.

ref: bitcoin/bips/bip-0039

installation

add the bip39 library to your shard.yml

dependencies:
  bip39:
    github: q9f/bip39.cr
    version: "~> 0.1"

usage

# import bip39
require "bip39"

you can generate and recover mnemonics fully adhering to the bip-0039 specification.

m = Bip0039::Mnemonic.new
# => <Bip0039::Mnemonic:0x7f51769bcd20 @ent=128, @seed=183297182565288719506055787609377395053>

m.to_words
# => ["measure", "come", "cube", "ostrich", "wide", "inspire", "hello", "essay", "ready", "cute", "reform", "sustain"]

m.to_hex
# => "89e5c0d5ce7faaea9ab269b2c6d6d16d"

What's Changed

  • bip39: add english dictionary by @q9f in #1
  • src: add bip0039 module for mnemonics by @q9f in #2
  • src: add bip0039 test vectors by @q9f in #3
  • ci: add codecov by @q9f in #4
  • docs: add html documenation by @q9f in #5

New Contributors

  • @q9f made their first contribution in #1

Full Changelog: https://github.com/q9f/bip39.cr/commits/v0.1.0