-
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.
Update to support Juvix 0.6.5 and new Anoma builtins (#16)
- Loading branch information
1 parent
897928f
commit 80bc788
Showing
12 changed files
with
159 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module Anoma.Data.Byte; | ||
|
||
import Stdlib.Prelude open; | ||
import Stdlib.Data.Byte open; | ||
|
||
{-# specialize: true, inline: case #-} | ||
instance | ||
ordByteI : Ord Byte := mkOrd (Ord.cmp on Byte.toNat); |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module Anoma.Data.ByteArray; | ||
|
||
import Stdlib.Prelude open; | ||
|
||
builtin bytearray | ||
axiom ByteArray : Type; | ||
|
||
builtin bytearray-from-list-byte | ||
axiom mk : List Byte -> ByteArray; | ||
|
||
builtin bytearray-length | ||
axiom length : ByteArray -> Nat; |
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
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
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,11 +1,11 @@ | ||
# This file was autogenerated by Juvix version 0.6.4. | ||
# This file was autogenerated by Juvix version 0.6.5. | ||
# Do not edit this file manually. | ||
|
||
version: 2 | ||
checksum: 991d05a3078cab0b630ff2de9b268a8fb2f164680d806dfb92454865e481b3c4 | ||
checksum: fbd6203d95670277a5355e725ae45b752f3a3e251dfa8cbff8b8b7d70b4bb6cf | ||
dependencies: | ||
- git: | ||
name: anoma_juvix-stdlib | ||
ref: 16211500dc59a944f851fbaeeef703fdd09163fa | ||
ref: 17a82dd466010b51924677b16a3f09a6c4c86a80 | ||
url: https://github.com/anoma/juvix-stdlib | ||
dependencies: [] |
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 |
---|---|---|
@@ -0,0 +1,107 @@ | ||
module AlwaysValid.Keys; | ||
|
||
import Anoma open; | ||
|
||
privKey : PrivateKey := | ||
PrivateKey.mk | ||
[ 0x0 | ||
; 0x60 | ||
; 0xa3 | ||
; 0x6b | ||
; 0xb1 | ||
; 0x3e | ||
; 0x45 | ||
; 0x45 | ||
; 0xc6 | ||
; 0x41 | ||
; 0x8f | ||
; 0x46 | ||
; 0xc9 | ||
; 0x72 | ||
; 0xa8 | ||
; 0x4e | ||
; 0x24 | ||
; 0x29 | ||
; 0xcb | ||
; 0x7b | ||
; 0x1b | ||
; 0x76 | ||
; 0xc3 | ||
; 0xa1 | ||
; 0xf6 | ||
; 0xf2 | ||
; 0x28 | ||
; 0xcc | ||
; 0xc4 | ||
; 0x39 | ||
; 0x1d | ||
; 0x1c | ||
; 0x91 | ||
; 0x7 | ||
; 0xfd | ||
; 0xe6 | ||
; 0xc6 | ||
; 0x54 | ||
; 0x6b | ||
; 0x5f | ||
; 0xc4 | ||
; 0x57 | ||
; 0xf6 | ||
; 0xc8 | ||
; 0xf8 | ||
; 0x80 | ||
; 0x94 | ||
; 0xe8 | ||
; 0x2f | ||
; 0xa6 | ||
; 0x30 | ||
; 0x13 | ||
; 0xdc | ||
; 0x7e | ||
; 0x50 | ||
; 0x78 | ||
; 0x8f | ||
; 0x2f | ||
; 0xb2 | ||
; 0xaf | ||
; 0xcb | ||
; 0xd0 | ||
; 0xa | ||
; 0x52 | ||
]; | ||
|
||
pubKey : PublicKey := | ||
PublicKey.mk | ||
[ 0x91 | ||
; 0x7 | ||
; 0xfd | ||
; 0xe6 | ||
; 0xc6 | ||
; 0x54 | ||
; 0x6b | ||
; 0x5f | ||
; 0xc4 | ||
; 0x57 | ||
; 0xf6 | ||
; 0xc8 | ||
; 0xf8 | ||
; 0x80 | ||
; 0x94 | ||
; 0xe8 | ||
; 0x2f | ||
; 0xa6 | ||
; 0x30 | ||
; 0x13 | ||
; 0xdc | ||
; 0x7e | ||
; 0x50 | ||
; 0x78 | ||
; 0x8f | ||
; 0x2f | ||
; 0xb2 | ||
; 0xaf | ||
; 0xcb | ||
; 0xd0 | ||
; 0xa | ||
; 0x52 | ||
]; |
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
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,28 +1,28 @@ | ||
# This file was autogenerated by Juvix version 0.6.4. | ||
# This file was autogenerated by Juvix version 0.6.5. | ||
# Do not edit this file manually. | ||
|
||
version: 2 | ||
checksum: 5cddee95c6408d8f699c799178f5e3c7368e9c543c7734d3b1b69ac6285831a0 | ||
checksum: 2bd62b79f2d679d8a211b1e1687bf7c6bb68ef74a675cc59a8a7b57683c9e9e4 | ||
dependencies: | ||
- git: | ||
name: anoma_juvix-stdlib | ||
ref: 16211500dc59a944f851fbaeeef703fdd09163fa | ||
ref: 17a82dd466010b51924677b16a3f09a6c4c86a80 | ||
url: https://github.com/anoma/juvix-stdlib | ||
dependencies: [] | ||
- path: ../ | ||
dependencies: | ||
- git: | ||
name: anoma_juvix-stdlib | ||
ref: 16211500dc59a944f851fbaeeef703fdd09163fa | ||
ref: 17a82dd466010b51924677b16a3f09a6c4c86a80 | ||
url: https://github.com/anoma/juvix-stdlib | ||
dependencies: [] | ||
- git: | ||
name: anoma_juvix-test | ||
ref: f7e822969fa82c510f38d6569a9b5ac7f1180221 | ||
ref: 12b72c6f91126f08e19ef183cc377bb86e629de9 | ||
url: https://github.com/anoma/juvix-test | ||
dependencies: | ||
- git: | ||
name: anoma_juvix-stdlib | ||
ref: 16211500dc59a944f851fbaeeef703fdd09163fa | ||
ref: 17a82dd466010b51924677b16a3f09a6c4c86a80 | ||
url: https://github.com/anoma/juvix-stdlib | ||
dependencies: [] |