public class Sign
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Sign.SignatureData |
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
SIGN_LENGTH |
| 构造器和说明 |
|---|
Sign() |
| 限定符和类型 | 方法和说明 |
|---|---|
static java.math.BigInteger |
signedMessageToKey(byte[] message,
Sign.SignatureData signatureData)
Given an arbitrary piece of text and an message signature encoded in bytes, returns the public
key that was used to sign it.
|
static Sign.SignatureData |
signMessage(byte[] message,
ECKeyPair keyPair) |
static Sign.SignatureData |
signMessage(byte[] message,
ECKeyPair keyPair,
boolean isHash) |
public static final int SIGN_LENGTH
public static Sign.SignatureData signMessage(byte[] message, ECKeyPair keyPair)
public static Sign.SignatureData signMessage(byte[] message, ECKeyPair keyPair, boolean isHash)
public static java.math.BigInteger signedMessageToKey(byte[] message,
Sign.SignatureData signatureData)
throws java.security.SignatureException
message - RLP encoded message.signatureData - The message signature componentsjava.security.SignatureException - If the public key could not be recovered or if there was a signature
formatTx error.