Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package org.ethereum.geth;
- import go.Seq;
- import go.Seq.Proxy;
- import go.Seq.Ref;
- import java.util.Arrays;
- public final class KeyStore implements Proxy {
- private final Ref ref;
- public final int incRefnum() {
- int var1 = this.ref.refnum;
- Seq.incGoRef(var1);
- return var1;
- }
- public KeyStore(String var1, long var2, long var4) {
- this.ref = __NewKeyStore(var1, var2, var4);
- }
- private static native Ref __NewKeyStore(String var0, long var1, long var3);
- KeyStore(Ref var1) {
- this.ref = var1;
- }
- public native void deleteAccount(Account var1, String var2) throws Exception;
- public native byte[] exportKey(Account var1, String var2, String var3) throws Exception;
- public native Accounts getAccounts();
- public native boolean hasAddress(Address var1);
- public native Account importKey(byte[] var1, String var2, String var3) throws Exception;
- public native Account importPreSaleKey(byte[] var1, String var2) throws Exception;
- public native void lock(Address var1) throws Exception;
- public native Account newAccount(String var1) throws Exception;
- public native byte[] signHash(Address var1, byte[] var2) throws Exception;
- public native byte[] signHashPassphrase(Account var1, String var2, byte[] var3) throws Exception;
- public native Transaction signTx(Account var1, Transaction var2, BigInt var3) throws Exception;
- public native Transaction signTxPassphrase(Account var1, String var2, Transaction var3, BigInt var4) throws Exception;
- public native void timedUnlock(Account var1, String var2, long var3) throws Exception;
- public native void unlock(Account var1, String var2) throws Exception;
- public native void updateAccount(Account var1, String var2, String var3) throws Exception;
- public boolean equals(Object var1) {
- if(var1 != null && var1 instanceof KeyStore) {
- KeyStore var2 = (KeyStore)var1;
- return true;
- } else {
- return false;
- }
- }
- public int hashCode() {
- return Arrays.hashCode(new Object[0]);
- }
- public String toString() {
- StringBuilder var1 = new StringBuilder();
- var1.append("KeyStore").append("{");
- return var1.append("}").toString();
- }
- static {
- Geth.touch();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement