Skip to content

Commit

Permalink
Allow signing of arbitrary data
Browse files Browse the repository at this point in the history
  • Loading branch information
fireduck64 committed Oct 2, 2018
1 parent 99db983 commit 4c46e48
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/src/SignatureUtil.java
Expand Up @@ -155,7 +155,7 @@ public static int estimateSignatureBytes(int sig_type)

}

public static ByteString sign(WalletKeyPair key_pair, ChainHash data)
public static ByteString sign(WalletKeyPair key_pair, ByteString data)
throws ValidationException
{

Expand Down Expand Up @@ -183,6 +183,13 @@ public static ByteString sign(WalletKeyPair key_pair, ChainHash data)

}


public static ByteString sign(WalletKeyPair key_pair, ChainHash data)
throws ValidationException
{
return sign(key_pair, data.getBytes());
}

public static ImmutableSet<String> ALLOWED_ECDSA_CURVES = getAllowedECDSACurves();
public static ImmutableSet<String> ALLOWED_DSTU4145_CURVES = getAllowedDSTU4145Curves();

Expand Down

0 comments on commit 4c46e48

Please sign in to comment.