feat: bootstrap moon-i2p core protocol foundation
This commit is contained in:
commit
e527b84bc3
47 files changed
+5350
No files matched your search
@@ -0,0 +1,12 @@
|
||||
///|
|
||||
test "root facade derive_b32_address and demo_summary" {
|
||||
let addr = @moon_i2p.derive_b32_address(
|
||||
Bytes::make(32, b'\x01'),
|
||||
Bytes::make(32, b'\x02'),
|
||||
)
|
||||
assert_eq(addr.length(), 60)
|
||||
assert_true(addr.has_suffix(".b32.i2p"))
|
||||
let summary = @moon_i2p.demo_summary()
|
||||
assert_true(summary.contains("moon-i2p v0.1.0"))
|
||||
assert_true(summary.contains(".b32.i2p"))
|
||||
}
|
||||
Reference in new issue
Block a user