Skip to content

Commit 4d57bb9

Browse files
committed
Add Azle implementation of SHA example
1 parent 35a5c38 commit 4d57bb9

File tree

8 files changed

+1006
-5
lines changed

8 files changed

+1006
-5
lines changed

crypto/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
include ../*.mk
22

3-
.PHONY: all motoko rust build perf
3+
.PHONY: all motoko rust azle build perf
44
all: build perf
55

66
motoko:
@@ -9,7 +9,10 @@ motoko:
99
rust:
1010
$(call build,rust)
1111

12-
build: motoko rust
12+
azle:
13+
$(call build,azle)
14+
15+
build: motoko rust azle
1316

1417
perf:
1518
$(call perf,crypto,perf.sh)

crypto/azle/dfx.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"canisters": {
3+
"sha": {
4+
"type": "custom",
5+
"main": "src/sha.ts",
6+
"candid": "sha.did",
7+
"build": "npx azle sha",
8+
"wasm": ".azle/sha/sha.wasm",
9+
"gzip": false
10+
}
11+
}
12+
}

0 commit comments

Comments
 (0)