forked from breadwallet/breadwallet-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcom_breadwallet_core_BRCoreKey.h
More file actions
237 lines (208 loc) · 6.45 KB
/
Copy pathcom_breadwallet_core_BRCoreKey.h
File metadata and controls
237 lines (208 loc) · 6.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_breadwallet_core_BRCoreKey */
#ifndef _Included_com_breadwallet_core_BRCoreKey
#define _Included_com_breadwallet_core_BRCoreKey
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: getSecret
* Signature: ()[B
*/
JNIEXPORT jbyteArray JNICALL Java_com_breadwallet_core_BRCoreKey_getSecret
(JNIEnv *, jobject);
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: getPubKey
* Signature: ()[B
*/
JNIEXPORT jbyteArray JNICALL Java_com_breadwallet_core_BRCoreKey_getPubKey
(JNIEnv *, jobject);
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: getCompressed
* Signature: ()I
*/
JNIEXPORT jint JNICALL Java_com_breadwallet_core_BRCoreKey_getCompressed
(JNIEnv *, jobject);
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: getPrivKey
* Signature: ()Ljava/lang/String;
*/
JNIEXPORT jstring JNICALL Java_com_breadwallet_core_BRCoreKey_getPrivKey
(JNIEnv *, jobject);
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: getSeedFromPhrase
* Signature: ([B)[B
*/
JNIEXPORT jbyteArray JNICALL Java_com_breadwallet_core_BRCoreKey_getSeedFromPhrase
(JNIEnv *, jclass, jbyteArray);
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: getAuthPrivKeyForAPI
* Signature: ([B)[B
*/
JNIEXPORT jbyteArray JNICALL Java_com_breadwallet_core_BRCoreKey_getAuthPrivKeyForAPI
(JNIEnv *, jclass, jbyteArray);
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: getAuthPublicKeyForAPI
* Signature: ([B)Ljava/lang/String;
*/
JNIEXPORT jstring JNICALL Java_com_breadwallet_core_BRCoreKey_getAuthPublicKeyForAPI
(JNIEnv *, jclass, jbyteArray);
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: decryptBip38Key
* Signature: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
*/
JNIEXPORT jstring JNICALL Java_com_breadwallet_core_BRCoreKey_decryptBip38Key
(JNIEnv *, jclass, jstring, jstring);
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: createJniCoreKey
* Signature: ()J
*/
JNIEXPORT jlong JNICALL Java_com_breadwallet_core_BRCoreKey_createJniCoreKey
(JNIEnv *, jclass);
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: createCoreKeyForBIP32
* Signature: ([BJJ)J
*/
JNIEXPORT jlong JNICALL Java_com_breadwallet_core_BRCoreKey_createCoreKeyForBIP32
(JNIEnv *, jclass, jbyteArray, jlong, jlong);
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: setPrivKey
* Signature: (Ljava/lang/String;)Z
*/
JNIEXPORT jboolean JNICALL Java_com_breadwallet_core_BRCoreKey_setPrivKey
(JNIEnv *, jobject, jstring);
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: setSecret
* Signature: ([BZ)Z
*/
JNIEXPORT jboolean JNICALL Java_com_breadwallet_core_BRCoreKey_setSecret
(JNIEnv *, jobject, jbyteArray, jboolean);
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: compactSign
* Signature: ([B)[B
*/
JNIEXPORT jbyteArray JNICALL Java_com_breadwallet_core_BRCoreKey_compactSign
(JNIEnv *, jobject, jbyteArray);
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: createKeyRecoverCompactSign
* Signature: ([B[B)J
*/
JNIEXPORT jlong JNICALL Java_com_breadwallet_core_BRCoreKey_createKeyRecoverCompactSign
(JNIEnv *, jclass, jbyteArray, jbyteArray);
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: encryptNative
* Signature: ([B[B)[B
*/
JNIEXPORT jbyteArray JNICALL Java_com_breadwallet_core_BRCoreKey_encryptNative
(JNIEnv *, jobject, jbyteArray, jbyteArray);
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: decryptNative
* Signature: ([B[B)[B
*/
JNIEXPORT jbyteArray JNICALL Java_com_breadwallet_core_BRCoreKey_decryptNative
(JNIEnv *, jobject, jbyteArray, jbyteArray);
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: encryptUsingSharedSecret
* Signature: ([B[B[B)[B
*/
JNIEXPORT jbyteArray JNICALL Java_com_breadwallet_core_BRCoreKey_encryptUsingSharedSecret
(JNIEnv *, jobject, jbyteArray, jbyteArray, jbyteArray);
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: decryptUsingSharedSecret
* Signature: ([B[B[B)[B
*/
JNIEXPORT jbyteArray JNICALL Java_com_breadwallet_core_BRCoreKey_decryptUsingSharedSecret
(JNIEnv *, jobject, jbyteArray, jbyteArray, jbyteArray);
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: createPairingKey
* Signature: ([B)J
*/
JNIEXPORT jlong JNICALL Java_com_breadwallet_core_BRCoreKey_createPairingKey
(JNIEnv *, jobject, jbyteArray);
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: address
* Signature: ()Ljava/lang/String;
*/
JNIEXPORT jstring JNICALL Java_com_breadwallet_core_BRCoreKey_address
(JNIEnv *, jobject);
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: isValidBitcoinPrivateKey
* Signature: (Ljava/lang/String;)Z
*/
JNIEXPORT jboolean JNICALL Java_com_breadwallet_core_BRCoreKey_isValidBitcoinPrivateKey
(JNIEnv *, jclass, jstring);
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: isValidBitcoinBIP38Key
* Signature: (Ljava/lang/String;)Z
*/
JNIEXPORT jboolean JNICALL Java_com_breadwallet_core_BRCoreKey_isValidBitcoinBIP38Key
(JNIEnv *, jclass, jstring);
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: encodeSHA256
* Signature: ([B)[B
*/
JNIEXPORT jbyteArray JNICALL Java_com_breadwallet_core_BRCoreKey_encodeSHA256
(JNIEnv *, jclass, jbyteArray);
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: encodeSHA256Double
* Signature: ([B)[B
*/
JNIEXPORT jbyteArray JNICALL Java_com_breadwallet_core_BRCoreKey_encodeSHA256Double
(JNIEnv *, jclass, jbyteArray);
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: encodeBase58
* Signature: ([B)Ljava/lang/String;
*/
JNIEXPORT jstring JNICALL Java_com_breadwallet_core_BRCoreKey_encodeBase58
(JNIEnv *, jclass, jbyteArray);
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: decodeBase58
* Signature: (Ljava/lang/String;)[B
*/
JNIEXPORT jbyteArray JNICALL Java_com_breadwallet_core_BRCoreKey_decodeBase58
(JNIEnv *, jclass, jstring);
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: sign
* Signature: ([B)[B
*/
JNIEXPORT jbyteArray JNICALL Java_com_breadwallet_core_BRCoreKey_sign
(JNIEnv *, jobject, jbyteArray);
/*
* Class: com_breadwallet_core_BRCoreKey
* Method: verify
* Signature: ([B[B)Z
*/
JNIEXPORT jboolean JNICALL Java_com_breadwallet_core_BRCoreKey_verify
(JNIEnv *, jobject, jbyteArray, jbyteArray);
#ifdef __cplusplus
}
#endif
#endif