代码拉取完成,页面将自动刷新
package link.luyu.protocol.network;
public interface Account {
interface SignCallback {
/**
* @param status common.STATUS
* @param message Error message
* @param signBytes Signature bytes
*/
void onResponse(int status, String message, byte[] signBytes);
}
interface VerifyCallback {
/**
* @param status common.STATUS
* @param message Error message
* @param verifyResult verify result
*/
void onResponse(int status, String message, boolean verifyResult);
}
/**
* Get public key of this account
*
* @return
*/
byte[] getPubKey();
/**
* Sign message with this account secret key
*
* @param message The message for signing
* @param callback
*/
void sign(byte[] message, SignCallback callback);
/**
* Verify signature of this account
*
* @param signBytes Signature with binary encoded
* @param message The message for signing
* @param callback
*/
void verify(byte[] signBytes, byte[] message, VerifyCallback callback);
/**
* Set property for this algorithm account. Plugin can save some extra data of this account if
* needed. Notices that the properties are belongs to the keyPair, if default keyPair change,
* properties would be changed.
*
* @param key The key of the value
* @param value The value of the key
*/
void setProperty(String key, String value);
/**
* Get property for this algorithm account of a certain key
*
* @param key The key of the value
* @return Return null if value is not existing
*/
String getProperty(String key);
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。