-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8141972
commit 8e67744
Showing
2 changed files
with
20 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
using DemeNet: DemeSpec, Deme, Signer, Certificate, Intent, save | ||
using PeaceCypher | ||
|
||
demespec = DemeSpec("PeaceDeme",:default,:PeaceCypher,:default,:PeaceCypher,:DemeNet) | ||
save(demespec) | ||
DemeSpec(demespec.uuid)==demespec # All fields are equal. Need to implement equality for this test | ||
# Need to think what this error means | ||
# LoadError: KeyError: key "PeaceCypher" not found | ||
# using PeaceCypher | ||
|
||
# Now some testing | ||
# demespec = DemeSpec("PeaceDeme",:default,:PeaceCypher,:default,:PeaceCypher,:DemeNet) | ||
# save(demespec) | ||
# DemeSpec(demespec.uuid)==demespec # All fields are equal. Need to implement equality for this test | ||
|
||
deme = Deme(demespec) | ||
maintainer = Signer(deme,"maintainer") | ||
# # Now some testing | ||
|
||
notary = deme.notary | ||
# deme = Deme(demespec) | ||
# maintainer = Signer(deme,"maintainer") | ||
|
||
signer = notary.Signer() | ||
msg = "Hello World" | ||
signature = notary.Signature(msg,signer) | ||
notary.verify(msg,signature) | ||
# notary = deme.notary | ||
|
||
# signer = notary.Signer() | ||
# msg = "Hello World" | ||
# signature = notary.Signature(msg,signer) | ||
# notary.verify(msg,signature) | ||
|
||
### Let's test Certificates and intent | ||
maintainer = Signer(deme,"maintainer") | ||
cert = Certificate("hello world",maintainer) | ||
intent = Intent(cert,notary) | ||
|
||
# ### Let's test Certificates and intent | ||
# maintainer = Signer(deme,"maintainer") | ||
# cert = Certificate("hello world",maintainer) | ||
# intent = Intent(cert,notary) |
8e67744
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
8e67744
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/12280
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: