JBIP-39

Java implementation of the BIP-39 specification.

License

License

GroupId

GroupId

org.nightcode
ArtifactId

ArtifactId

jbip39
Last Version

Last Version

0.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

JBIP-39
Java implementation of the BIP-39 specification.
Project URL

Project URL

http://github.com/nightcode/jbip39/
Source Code Management

Source Code Management

http://github.com/nightcode/jbip39/

Download jbip39

How to add to project

<!-- https://jarcasting.com/artifacts/org.nightcode/jbip39/ -->
<dependency>
    <groupId>org.nightcode</groupId>
    <artifactId>jbip39</artifactId>
    <version>0.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.nightcode/jbip39/
implementation 'org.nightcode:jbip39:0.1.1'
// https://jarcasting.com/artifacts/org.nightcode/jbip39/
implementation ("org.nightcode:jbip39:0.1.1")
'org.nightcode:jbip39:jar:0.1.1'
<dependency org="org.nightcode" name="jbip39" rev="0.1.1">
  <artifact name="jbip39" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.nightcode', module='jbip39', version='0.1.1')
)
libraryDependencies += "org.nightcode" % "jbip39" % "0.1.1"
[org.nightcode/jbip39 "0.1.1"]

Dependencies

compile (1)

Group / Artifact Type Version
com.google.code.findbugs : jsr305 jar 3.0.0

test (3)

Group / Artifact Type Version
junit : junit jar 4.12
org.easymock : easymock jar 3.6
com.google.code.gson : gson jar 2.8.5

Project Modules

There are no modules declared in this project.

JBIP 39

Build Status Maven Central

Java implementation of the BIP 39 specification.

How to use

Create a new mnemonic (a seed phrase)

  Dictionary dictionary = EnglishDictionary.instance();

  Bip39 bip39 = new Bip39(dictionary);

  byte[] entropy = bip39.generateEntropy(EntropyDesc.ENT_128);

  String mnemonic = bip39.createMnemonic(entropy);

Convert a mnemonic to a seed

  String mnemonic = "legal winner thank year wave sausage worth useful legal winner thank yellow";
  String passphrase = "TREZOR";

  byte[] seed = bip39.createSeed(mnemonic, passphrase);

Download

Download the latest jar via Maven:

<dependency>
  <groupId>org.nightcode</groupId>
  <artifactId>jbip39</artifactId>
  <version>0.1.1</version>
</dependency>

Credits

Wordlists are from the BIP 0039.

Feedback is welcome. Please don't hesitate to open up a new github issue or simply drop me a line at dmitry@nightcode.org.

Versions

Version
0.1.1
0.1