Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Co-Authored-By: Markus Sabadello <[email protected]>
  • Loading branch information
BernhardFuchs and peacekeeper authored Feb 25, 2020
1 parent df7f1c7 commit 4bd473c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Example Usage of `PrivateKeySignerFactory`:
// privateKey must be one of the following
Object privateKey = rsaPrivateKey; // implementation of java.security.interfaces.RSAPrivateKey
Object privateKey = ecPrivateKey; // implementation of org.bitcoinj.core.ECKey
Object privateKey = privateKeyAsByteArray; // a com.nimbusds.jose.jwk.JWK converted to a byte[]
Object privateKey = privateKeyAsByteArray; // an Ed25519 key as a byte[]
PrivateKeySigner<?> privateKeySigner = PrivateKeySignerFactory.privateKeySignerForKey(keyType, algorithm, privateKey);
signature = privateKeySigner.sign(body, algorithm);
Expand Down

0 comments on commit 4bd473c

Please sign in to comment.