Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.37 KB | None | 0 0
  1. package org.ethereum.geth;
  2.  
  3. import go.Seq;
  4. import go.Seq.Proxy;
  5. import go.Seq.Ref;
  6. import java.util.Arrays;
  7.  
  8. public final class KeyStore implements Proxy {
  9.     private final Ref ref;
  10.  
  11.     public final int incRefnum() {
  12.         int var1 = this.ref.refnum;
  13.         Seq.incGoRef(var1);
  14.         return var1;
  15.     }
  16.  
  17.     public KeyStore(String var1, long var2, long var4) {
  18.         this.ref = __NewKeyStore(var1, var2, var4);
  19.     }
  20.  
  21.     private static native Ref __NewKeyStore(String var0, long var1, long var3);
  22.  
  23.     KeyStore(Ref var1) {
  24.         this.ref = var1;
  25.     }
  26.  
  27.     public native void deleteAccount(Account var1, String var2) throws Exception;
  28.  
  29.     public native byte[] exportKey(Account var1, String var2, String var3) throws Exception;
  30.  
  31.     public native Accounts getAccounts();
  32.  
  33.     public native boolean hasAddress(Address var1);
  34.  
  35.     public native Account importKey(byte[] var1, String var2, String var3) throws Exception;
  36.  
  37.     public native Account importPreSaleKey(byte[] var1, String var2) throws Exception;
  38.  
  39.     public native void lock(Address var1) throws Exception;
  40.  
  41.     public native Account newAccount(String var1) throws Exception;
  42.  
  43.     public native byte[] signHash(Address var1, byte[] var2) throws Exception;
  44.  
  45.     public native byte[] signHashPassphrase(Account var1, String var2, byte[] var3) throws Exception;
  46.  
  47.     public native Transaction signTx(Account var1, Transaction var2, BigInt var3) throws Exception;
  48.  
  49.     public native Transaction signTxPassphrase(Account var1, String var2, Transaction var3, BigInt var4) throws Exception;
  50.  
  51.     public native void timedUnlock(Account var1, String var2, long var3) throws Exception;
  52.  
  53.     public native void unlock(Account var1, String var2) throws Exception;
  54.  
  55.     public native void updateAccount(Account var1, String var2, String var3) throws Exception;
  56.  
  57.     public boolean equals(Object var1) {
  58.         if(var1 != null && var1 instanceof KeyStore) {
  59.             KeyStore var2 = (KeyStore)var1;
  60.             return true;
  61.         } else {
  62.             return false;
  63.         }
  64.     }
  65.  
  66.     public int hashCode() {
  67.         return Arrays.hashCode(new Object[0]);
  68.     }
  69.  
  70.     public String toString() {
  71.         StringBuilder var1 = new StringBuilder();
  72.         var1.append("KeyStore").append("{");
  73.         return var1.append("}").toString();
  74.     }
  75.  
  76.     static {
  77.         Geth.touch();
  78.     }
  79. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement