Skip to content

Commit 2000bbe

Browse files
Merge pull request #1243 from cypherstack/feat/epic-v4
Epic v4 and slates
2 parents 0323a14 + b017b17 commit 2000bbe

File tree

28 files changed

+2317
-47
lines changed

28 files changed

+2317
-47
lines changed

crypto_plugins/flutter_libepiccash

docs/building.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Install [Rust](https://www.rust-lang.org/tools/install) via [rustup.rs](https://
6262
```
6363
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
6464
source ~/.bashrc
65-
rustup install 1.89.0 1.81.0
65+
rustup install 1.89.0 1.85.1 1.81.0
6666
rustup default 1.89.0
6767
cargo install cargo-ndk
6868
```
@@ -209,11 +209,11 @@ brew install brotli cairo coreutils gdbm gettext glib gmp libevent libidn2 libng
209209
```
210210
<!-- TODO: determine which of the above list are not needed at all. -->
211211

212-
Download and install [Rust](https://www.rust-lang.org/tools/install). [Rustup](https://rustup.rs/) is recommended for Rust setup. Use `rustc` to confirm successful installation. Install toolchains 1.81.0 and 1.89.0 as well as `cbindgen` and `cargo-lipo` too. You will also have to add the platform target(s) `aarch64-apple-ios` and/or `aarch64-apple-darwin`. You can use the command(s):
212+
Download and install [Rust](https://www.rust-lang.org/tools/install). [Rustup](https://rustup.rs/) is recommended for Rust setup. Use `rustc` to confirm successful installation. Install toolchains 1.81.0, 1.85.1, and 1.89.0 as well as `cbindgen` and `cargo-lipo` too. You will also have to add the platform target(s) `aarch64-apple-ios` and/or `aarch64-apple-darwin`. You can use the command(s):
213213
```
214214
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
215215
source ~/.bashrc
216-
rustup install 1.89.0 1.81.0
216+
rustup install 1.89.0 1.85.1 1.81.0
217217
rustup default 1.89.0
218218
cargo install cargo-ndk
219219
cargo install cbindgen cargo-lipo
@@ -294,7 +294,7 @@ Install Flutter 3.38.5 on your Windows host (not in WSL2) by [following their gu
294294
### Rust
295295
Install [Rust](https://www.rust-lang.org/tools/install) on the Windows host (not in WSL2). Download the installer from [rustup.rs](https://rustup.rs), make sure it works on the commandline (you may need to open a new terminal), and install the following versions:
296296
```
297-
rustup install 1.89.0 1.81.0
297+
rustup install 1.89.0 1.85.1 1.81.0
298298
rustup default 1.89.0
299299
cargo install cargo-ndk
300300
```
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
class EpicSlatepackResult {
2+
final bool success;
3+
final String? error;
4+
final String? slatepack;
5+
final String? slateJson;
6+
final bool? wasEncrypted;
7+
final String? recipientAddress;
8+
9+
EpicSlatepackResult({
10+
required this.success,
11+
this.error,
12+
this.slatepack,
13+
this.slateJson,
14+
this.wasEncrypted,
15+
this.recipientAddress,
16+
});
17+
18+
@override
19+
String toString() {
20+
return "EpicSlatepackResult("
21+
"success: $success, "
22+
"error: $error, "
23+
"slatepack: $slatepack, "
24+
"slateJson: $slateJson, "
25+
"wasEncrypted: $wasEncrypted, "
26+
"recipientAddress: $recipientAddress"
27+
")";
28+
}
29+
}
30+
31+
class EpicSlatepackDecodeResult {
32+
final bool success;
33+
final String? error;
34+
final String? slateJson;
35+
final bool? wasEncrypted;
36+
final String? senderAddress;
37+
final String? recipientAddress;
38+
39+
EpicSlatepackDecodeResult({
40+
required this.success,
41+
this.error,
42+
this.slateJson,
43+
this.wasEncrypted,
44+
this.senderAddress,
45+
this.recipientAddress,
46+
});
47+
48+
@override
49+
String toString() {
50+
return "EpicSlatepackDecodeResult("
51+
"success: $success, "
52+
"error: $error, "
53+
"slateJson: $slateJson, "
54+
"wasEncrypted: $wasEncrypted, "
55+
"senderAddress: $senderAddress, "
56+
"recipientAddress: $recipientAddress"
57+
")";
58+
}
59+
}
60+
61+
class EpicReceiveResult {
62+
final bool success;
63+
final String? error;
64+
final String? slateId;
65+
final String? commitId;
66+
final String? responseSlatepack;
67+
final bool? wasEncrypted;
68+
final String? recipientAddress;
69+
70+
EpicReceiveResult({
71+
required this.success,
72+
this.error,
73+
this.slateId,
74+
this.commitId,
75+
this.responseSlatepack,
76+
this.wasEncrypted,
77+
this.recipientAddress,
78+
});
79+
80+
@override
81+
String toString() {
82+
return "EpicReceiveResult("
83+
"success: $success, "
84+
"error: $error, "
85+
"slateId: $slateId, "
86+
"commitId: $commitId, "
87+
"responseSlatepack: $responseSlatepack, "
88+
"wasEncrypted: $wasEncrypted, "
89+
"recipientAddress: $recipientAddress"
90+
")";
91+
}
92+
}
93+
94+
class EpicFinalizeResult {
95+
final bool success;
96+
final String? error;
97+
final String? slateId;
98+
final String? commitId;
99+
100+
EpicFinalizeResult({
101+
required this.success,
102+
this.error,
103+
this.slateId,
104+
this.commitId,
105+
});
106+
107+
@override
108+
String toString() {
109+
return "EpicFinalizeResult("
110+
"success: $success, "
111+
"error: $error, "
112+
"slateId: $slateId, "
113+
"commitId: $commitId"
114+
")";
115+
}
116+
}

0 commit comments

Comments
 (0)