Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update master branch #117

Closed
wants to merge 300 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
300 commits
Select commit Hold shift + click to select a range
5f92ffd
feat: add query for did resource
MikkySnow Sep 14, 2023
7e278aa
feat: extend genesis impl
MikkySnow Sep 14, 2023
bbc6f2d
feat: add cli commands for did resources
MikkySnow Sep 14, 2023
995d092
feat: register createResource command
MikkySnow Sep 14, 2023
edd90f5
refactor: merge debug commands
MikkySnow Sep 14, 2023
2316cac
feat: add draft of sample resource debug cmd
MikkySnow Sep 14, 2023
18a1c5f
test: add basic test for did resource creation
MikkySnow Sep 14, 2023
5696f0f
refactor: comment test
MikkySnow Sep 14, 2023
2ab1cc5
refactor: refactor to remove redundant args
MikkySnow Sep 14, 2023
6258107
feat: register sample did resource cmd
MikkySnow Sep 14, 2023
2421bb4
feat: register codec for MsgCreateResource
MikkySnow Sep 15, 2023
a129f3e
hotfix: remove empty submodule
MikkySnow Sep 20, 2023
8b3b92e
refactor: remove empty submodule
MikkySnow Sep 22, 2023
e086420
feat: add `did` and `util` namespaces to default list
MikkySnow Sep 26, 2023
2e55039
refactor: add keeper methods
MikkySnow Sep 26, 2023
ca246d4
feat: connect DIDKeeper to EVMKeeper
MikkySnow Sep 26, 2023
6990d3a
feat: pass DIDKeeper to connector
MikkySnow Sep 26, 2023
5444eb4
feat: add draft of identity precompile
MikkySnow Sep 28, 2023
d5a3d72
fix: fixing compilation issues
MikkySnow Sep 29, 2023
d136edb
fix: fixing complication issues
MikkySnow Sep 29, 2023
54e981e
fix: fix compilation issues
MikkySnow Sep 29, 2023
a61ddc9
refactor: add comments and merge small files into one
MikkySnow Sep 29, 2023
c420c08
refactor: remove unused crate
MikkySnow Sep 29, 2023
c02d12b
fix: fix compilation issue
MikkySnow Sep 29, 2023
5c747d9
refactoring: cleanup tx handler
MikkySnow Sep 29, 2023
7fe07be
feat: provide querier to precompileset
MikkySnow Sep 29, 2023
b73edf2
refactor: moving precompiles into sgxvm (in progress)
MikkySnow Oct 1, 2023
11ca65c
refactor: moving precompiles into sgxvm (in progress)
MikkySnow Oct 2, 2023
9c6edcb
refactor: fix warnings
MikkySnow Oct 2, 2023
7e4825d
fix: fix compilation issue
MikkySnow Oct 2, 2023
1580439
fix: return datacopy precompile
MikkySnow Oct 2, 2023
447931a
refactor: prettify
MikkySnow Oct 2, 2023
0df2f88
feat: provide GoQuerier to Identity precompile
MikkySnow Oct 2, 2023
8b33e6b
feat: add function to encode request for credentials verification
MikkySnow Oct 2, 2023
6640747
feat: add draft of precompile for VC verification
MikkySnow Oct 4, 2023
4634fdd
feat: add request for obtaining verification material
MikkySnow Oct 4, 2023
8a39a60
feat: pass GoQueroer
MikkySnow Oct 4, 2023
f3138ba
feat: add query for verification methods
MikkySnow Oct 4, 2023
888b484
feat: finish precompile part
MikkySnow Oct 4, 2023
df3921e
feat: add GetVerificationMethods function to connector
MikkySnow Oct 4, 2023
87ef34f
feat: implement connector for DID
MikkySnow Oct 4, 2023
1444dab
test: prepare test for VC precompile
MikkySnow Oct 5, 2023
f8e2df0
test: add test for getting verification methods using connector
MikkySnow Oct 5, 2023
09bad11
chore: update mod reference
kenta92115 Oct 6, 2023
38052cf
chore: refactor reference to simapp
kenta92115 Oct 6, 2023
3c3517c
chore: fix referencing issue
kenta92115 Oct 6, 2023
dc5d754
test: add draft of credentials contract and test
MikkySnow Oct 6, 2023
8acfb60
feat: increase default balances
MikkySnow Oct 6, 2023
75c97bc
test: cleanup
MikkySnow Oct 6, 2023
16ec0ee
test: add basic test for interaction with VC.sol
MikkySnow Oct 6, 2023
fddfb0c
chore: reformat code
MikkySnow Oct 6, 2023
5f9a065
test: add draft of integration test
MikkySnow Oct 6, 2023
979fdae
chore: uncomment
MikkySnow Oct 6, 2023
4283504
refactor: remove unused precompile crates
MikkySnow Oct 6, 2023
ccca6f0
test: add actual data
MikkySnow Oct 6, 2023
e2d8d64
fix: fixed precompile issue
MikkySnow Oct 7, 2023
978b594
refactor: remove todo's and reformat the code
MikkySnow Oct 8, 2023
3040466
refactor: reduce code size
MikkySnow Oct 8, 2023
aeafdd5
Merge branch 'develop' of https:/SigmaGmbH/swisstronik-ch…
MikkySnow Oct 8, 2023
35aed44
refactor: remove unused derived trait
MikkySnow Oct 8, 2023
64f0df2
Merge branch 'master' of https:/SigmaGmbH/swisstronik-cha…
MikkySnow Oct 8, 2023
58faa85
refactor: remove unused submodule
MikkySnow Oct 8, 2023
c03d34f
chore: fix app.go
kenta92115 Oct 8, 2023
159760b
chore: upgrade library and module
kenta92115 Oct 9, 2023
c6a7813
chore: upgrade testing library
kenta92115 Oct 9, 2023
0f6bfae
fix app.go to include consensus keeper
kenta92115 Oct 9, 2023
19a5364
chore: fix iavl && exp/slices error
kenta92115 Oct 9, 2023
eb033eb
fix: ante handler
kenta92115 Oct 9, 2023
cc91be3
test: update test contract for VC
MikkySnow Oct 9, 2023
4e20fde
test: uncomment test for gas estimation
MikkySnow Oct 9, 2023
6dd3589
Merge pull request #37 from SigmaGmbH/feat/extend-did-module
MikkySnow Oct 9, 2023
a445d37
chore: update moudles
kenta92115 Oct 11, 2023
0e01c0a
fix: fix protobuf issue
MikkySnow Oct 11, 2023
ec359e1
chore: remove duplicate sethook for govkeeper
kenta92115 Oct 11, 2023
1284019
refactor: add comments + reduce code size
MikkySnow Oct 12, 2023
1fb1482
refactor: use ENCLAVE_HOME instead of CHAIN_HOME
MikkySnow Oct 12, 2023
fdf3d93
refactor: refactor tests
MikkySnow Oct 12, 2023
124b8dc
refactor: resolve todo
MikkySnow Oct 12, 2023
3a127b2
chore: fix vesting module unit testing
kenta92115 Oct 13, 2023
d10bbf3
chore: fix setupWithT
kenta92115 Oct 16, 2023
4d2a188
chore: fix chain Id
kenta92115 Oct 16, 2023
7fe2f24
chore: add update to date eip712
kenta92115 Oct 18, 2023
b3875a7
chore: set fees acount to be gas amount multiplied
kenta92115 Oct 18, 2023
8f78095
refactor: add nosgx build flag
MikkySnow Oct 19, 2023
a75f091
refactor: cleanup
MikkySnow Oct 19, 2023
8ad5fc2
feat: add draft of command for macos build
MikkySnow Oct 19, 2023
448f076
chore: fix unit test failure in ante handler
kenta92115 Oct 20, 2023
c2524fb
chore: fix eip unit test issue
kenta92115 Oct 20, 2023
fa452d5
chore: fix chainId issue
kenta92115 Oct 23, 2023
5bae7b7
fix: trying to fix issue with build tags
MikkySnow Oct 23, 2023
17e2c33
fix: fix build issue for linux amd64
MikkySnow Oct 23, 2023
3449391
feat: add command for build for windows
MikkySnow Oct 23, 2023
3bbb079
refactor: remove sgx-related commands from swisstronikcli
MikkySnow Oct 23, 2023
f0e6a64
feat: add build instructions for arm64 and amd64
MikkySnow Oct 23, 2023
0e78748
fix: typo fix
MikkySnow Oct 23, 2023
82d1bd3
First CI try
delneg Oct 23, 2023
2f75bde
CI #2
delneg Oct 23, 2023
e6fc907
CI #3
delneg Oct 23, 2023
1def125
CI #4
delneg Oct 23, 2023
815ba0b
CI #5
delneg Oct 23, 2023
849e6ac
CI #6 Update upload-artifact to v3
delneg Oct 23, 2023
4d99dfe
Added badge to README, switch to tag-only runs, enable manual triggers
delneg Oct 23, 2023
84e05c3
Merge pull request #38 from SigmaGmbH/feat/no-sgx-cli
MikkySnow Oct 23, 2023
383e92a
fix: quick fix for identity precompile
MikkySnow Oct 24, 2023
1bea277
Merge pull request #39 from SigmaGmbH/fix/quick-fix-ed25519precompile
MikkySnow Oct 24, 2023
cf14317
refactor: remove redundant debug logs and comments
MikkySnow Oct 24, 2023
491f3eb
Merge pull request #40 from SigmaGmbH/refactor/cleanup
MikkySnow Oct 24, 2023
8fa0410
Merge branch 'develop' of https:/SigmaGmbH/swisstronik-ch…
MikkySnow Oct 24, 2023
4b4f898
refactor: create a separate directory for sgxvm enclave
MikkySnow Oct 24, 2023
7e36a44
fix: fix compilation issues during refactor
MikkySnow Oct 24, 2023
2575e96
refactor: remove sgx-sdk submodule
MikkySnow Oct 24, 2023
6670381
refactor: remove sgx-sdk submodule from go-sgxvm
MikkySnow Oct 24, 2023
84cbc4d
refactor: move sgx-sdk into sgxvm directory
MikkySnow Oct 24, 2023
3ce1fef
refactor: set submodule version
MikkySnow Oct 24, 2023
fa5c1dc
refactor: wip: migrating to a new structure
MikkySnow Oct 24, 2023
60d1f2d
refactor: apply new structure
MikkySnow Oct 24, 2023
cea715f
chore: update README
MikkySnow Oct 24, 2023
4bc3cc0
docs: update README
MikkySnow Oct 24, 2023
53f6caf
refactor: simplify build process
MikkySnow Oct 24, 2023
77b7803
fix: trying to fix issue with protobuf generation
MikkySnow Oct 24, 2023
02d81cd
fix: fix issue with cyclic import
MikkySnow Oct 24, 2023
646d9ac
test: update sign_tx_test.go
MikkySnow Oct 24, 2023
d172ee3
chore: update protobuf & enclave
MikkySnow Oct 24, 2023
d83aca9
Merge branch 'develop' of https:/SigmaGmbH/swisstronik-ch…
MikkySnow Oct 24, 2023
58966e3
refactor: use cometbft instead of tendermint
MikkySnow Oct 24, 2023
e918fc2
fix: fix build issue
MikkySnow Oct 24, 2023
c369464
chore: add nbf validation
kenta92115 Oct 25, 2023
5e30769
chore: fix comparison of nbf date
kenta92115 Oct 25, 2023
bf20895
fix: fix build issues in tests
MikkySnow Oct 25, 2023
7e712be
feat: cache node public key
MikkySnow Oct 25, 2023
4e14c76
Merge pull request #41 from SigmaGmbH/hotfix/cache-node-pk
MikkySnow Oct 25, 2023
dba598f
chore: add issuer in identiy return RLP, decode it in VC.sol
kenta92115 Oct 27, 2023
8c33563
test: small test fixes
MikkySnow Oct 30, 2023
7c40c8b
Merge pull request #42 from SigmaGmbH/feat/SDK-47
MikkySnow Oct 30, 2023
f50593b
Merge branch 'develop' of https:/SigmaGmbH/swisstronik-ch…
MikkySnow Oct 30, 2023
a09f2ee
refactor: use cometbft instead of tendermint
MikkySnow Oct 30, 2023
b5febc4
Merge pull request #43 from SigmaGmbH/refactoring/prettify-enclave
MikkySnow Oct 30, 2023
525d425
Merge branch 'develop' of https:/SigmaGmbH/swisstronik-ch…
MikkySnow Oct 30, 2023
483d6f9
refactor: update protobuf
MikkySnow Oct 30, 2023
db5cc37
chore: update wrapper dyn lib
MikkySnow Oct 30, 2023
46d4b3e
refactor: remove unused import
MikkySnow Oct 30, 2023
9028dab
test: update VC.sol test contract
MikkySnow Oct 30, 2023
5a984f8
test: add test for nbf field of JWT proof
MikkySnow Oct 31, 2023
c5b0b5a
Merge pull request #44 from SigmaGmbH/feat/jwt-nbf
MikkySnow Oct 31, 2023
c10a37a
Merge branch 'develop' of https:/SigmaGmbH/swisstronik-ch…
MikkySnow Oct 31, 2023
ccbb565
chore: update protobuf and dyn lib
MikkySnow Oct 31, 2023
3fa6e78
refactor: return data from precompile in ABI format
MikkySnow Oct 31, 2023
93a0559
test: add check for returned data from VC.sol
MikkySnow Oct 31, 2023
87524b0
Merge pull request #45 from SigmaGmbH/feat/BLOCK-227
MikkySnow Oct 31, 2023
e626adf
chore: update protobuf
MikkySnow Nov 2, 2023
ff77d63
fix: restore tests
MikkySnow Nov 2, 2023
0845cdd
Merge pull request #46 from SigmaGmbH/fix/solidity
MikkySnow Nov 2, 2023
1afbdce
feat: add method to obtain controlled DIDs by provided verification m…
MikkySnow Nov 3, 2023
d5b4f79
chore: set eth key type to legacy Cdc
kenta92115 Nov 6, 2023
39d57fc
feat: add method to add and remove associated did
MikkySnow Nov 6, 2023
1dd5089
Merge pull request #47 from SigmaGmbH/feat/fix-key-export
MikkySnow Nov 6, 2023
b9c568b
Merge branch 'develop' of https:/SigmaGmbH/swisstronik-ch…
MikkySnow Nov 6, 2023
b746b59
feat: use AddDIDControlledBy and RemoveControlledDID calls
MikkySnow Nov 6, 2023
a817a4e
feat: add query for controlled dids
MikkySnow Nov 6, 2023
7ee24e3
feat: add query for all controlled documents
MikkySnow Nov 6, 2023
d36b1b7
test: add basic test for indexing verification material
MikkySnow Nov 6, 2023
d06f2a7
test: update test to check verification method index
MikkySnow Nov 6, 2023
b0be0a0
feat: add did_documentsControlledBy request
MikkySnow Nov 7, 2023
3e3e4fb
test: add test for adding and removing VM from index
MikkySnow Nov 7, 2023
572ace9
feat: add cli command to query all controlled docs
MikkySnow Nov 7, 2023
fab6cef
Merge pull request #48 from SigmaGmbH/feat/controlled-dids
MikkySnow Nov 7, 2023
a5f65ea
fix: trying to fix docker build
MikkySnow Nov 8, 2023
7c1a756
fix: revert Cargo.lock
MikkySnow Nov 8, 2023
fa05ee4
refactor: rename did tx commands
MikkySnow Nov 8, 2023
1024b13
fix: fix docker build
MikkySnow Nov 8, 2023
b0a5f11
Merge pull request #49 from SigmaGmbH/fix/fix-docker-image
MikkySnow Nov 8, 2023
e683e8d
chore: setup handler
kenta92115 Nov 9, 2023
88154f3
chore: add eip
kenta92115 Nov 9, 2023
b30ff5e
refactor: update version to v1.0.1
MikkySnow Nov 9, 2023
7d36f15
Merge branch 'develop' into feat/ci-deb
delneg Nov 10, 2023
5dd765d
Iterate on deb builds, port changes to Dockerfile
delneg Nov 10, 2023
2e63868
Fix env
delneg Nov 10, 2023
2d7b45f
Enclave home, remove /opt/swisstronik on rm
delneg Nov 10, 2023
544f155
feat: take ENCLAVE_HOME from runtime
MikkySnow Nov 10, 2023
bece529
Merge branch 'feat/ci-deb' of https:/SigmaGmbH/swisstroni…
MikkySnow Nov 10, 2023
cf89843
Enclave home in systemd file
delneg Nov 10, 2023
01b1e1d
Remove SGX-breaking options from systemd
delneg Nov 10, 2023
5ae5cad
Modify docs accordingly
delneg Nov 10, 2023
fba3d2b
refactor: add SEED_HOME env var
MikkySnow Nov 10, 2023
6f04368
Merge branch 'feat/ci-deb' of https:/SigmaGmbH/swisstroni…
MikkySnow Nov 10, 2023
7e7e91f
Added SEED_HOME env var to systemd service
delneg Nov 10, 2023
877e227
chore: add distribution param keeper and feemarket keeper module chec…
kenta92115 Nov 12, 2023
e2e6f57
chore: add default statement
kenta92115 Nov 12, 2023
fe5c56f
Merge pull request #50 from SigmaGmbH/feat/upgrade-handler
MikkySnow Nov 12, 2023
c27e94d
Fix deb pipeline to react to tags, get version from git tag
delneg Nov 13, 2023
b75236c
Merge remote-tracking branch 'origin/develop' into feat/ci-deb
delneg Nov 13, 2023
8e57a69
feat: update dylib
MikkySnow Nov 13, 2023
5e9d814
Merge pull request #51 from SigmaGmbH/feat/ci-deb
MikkySnow Nov 13, 2023
423cce1
refactor: rename comments
MikkySnow Nov 17, 2023
a9c941b
refactor: update comments and names
MikkySnow Nov 20, 2023
d119efb
fix: fix issue with path to enclave file
MikkySnow Nov 20, 2023
59e770f
fix: restore ibc tests
MikkySnow Nov 20, 2023
669bc82
refactor: refactor test utils
MikkySnow Nov 20, 2023
42e3d7b
refactor: remove redundant code
MikkySnow Nov 21, 2023
8466144
Merge pull request #54 from SigmaGmbH/refactor/comments
MikkySnow Nov 21, 2023
b9bfd40
Fix `swisstronikd debug sample-did-resource` (#55)
MikkySnow Dec 1, 2023
775518d
resolve git conflict
MikkySnow Dec 1, 2023
8f3f791
Add debug command to sign DID document command (#57)
kenta92115 Dec 7, 2023
984e8cc
Merge branch 'master' of https:/SigmaGmbH/swisstronik-cha…
MikkySnow Dec 7, 2023
5b8b347
chore: add ica controller (#62)
kenta92115 Jan 31, 2024
d82ee5a
Statically linked Linux CLI (#63)
delneg Feb 1, 2024
26053b5
Feat/update encryption (#64)
MikkySnow Feb 9, 2024
d86276d
Feat/dcap (#67)
MikkySnow Mar 8, 2024
c8fa0e9
Feat/export dcap quote (#68)
MikkySnow Apr 3, 2024
f81ac2d
Remove did module (#77)
deep-quality-dev Apr 22, 2024
00704db
DCAP (#72)
MikkySnow Apr 22, 2024
76ec3ee
Feat/enable random nonce (#78)
MikkySnow Apr 22, 2024
5b2a54a
Fix ci config
delneg Apr 22, 2024
8122af3
Feat/return error (#79)
MikkySnow Apr 23, 2024
cd0df54
Move enclave secret to gh secrets
delneg Apr 23, 2024
de0877b
Secerts for docker workflow
delneg Apr 23, 2024
2514599
Merge from x/compliance to develop (#81)
delneg Apr 25, 2024
52f7715
Fix querying verification details (#83)
deep-quality-dev May 3, 2024
896a721
Fix/query verification details again (#84)
deep-quality-dev May 9, 2024
b9f1910
Add pagination for querying issuers/users/verifications (#85)
deep-quality-dev May 9, 2024
80d8afd
refactor: add more initial accounts + initial operators (#86)
MikkySnow May 9, 2024
8a1f397
Add query key in compliance pagination (#87)
deep-quality-dev May 10, 2024
08c1519
Create monthly linear vesting with cliff feature (#82)
deep-quality-dev May 14, 2024
2d79755
Feat/attestation server (#89)
MikkySnow May 15, 2024
2082a91
Modify precompiles in compliance (#88)
deep-quality-dev May 22, 2024
a3c94ad
Feat/mrsigner update (#90)
MikkySnow May 23, 2024
897c252
Modify enum values in compliance module (#91)
deep-quality-dev May 23, 2024
89a8e78
Refactor/versioned files (#92)
MikkySnow May 27, 2024
34c08a5
Get verification data by given issuer address (#93)
deep-quality-dev May 28, 2024
43ef1bf
Refactor/versioned files (#94)
MikkySnow May 28, 2024
a4370d0
Unique compliance query format (#95)
deep-quality-dev May 29, 2024
8139d28
Fix unit test for verification details
deep-quality-dev May 29, 2024
ef7bc70
Same RA requirements (#96)
MikkySnow May 30, 2024
1a6260d
Fix CLI builds (#98)
delneg Jun 10, 2024
0b8d3fe
Release v1.0.2 (#97)
MikkySnow Jun 10, 2024
e1d2adb
Fix exact args for `update-issuer-details` cmd (#100)
deep-quality-dev Jun 13, 2024
4c582be
Benchmark script update (#101)
MikkySnow Jun 13, 2024
8d01b12
Cache node public key (#102)
MikkySnow Jun 14, 2024
07574fc
Update validation check for verification details (#103)
deep-quality-dev Jun 18, 2024
2a3a818
Fix backend unit tests (#104)
deep-quality-dev Jun 19, 2024
0eec0e0
Use correct denom in genesis for local node (#106)
deep-quality-dev Jun 21, 2024
04098c4
Feat/unencrypted txs (#105)
MikkySnow Jun 25, 2024
02e78b8
Refactor/cherry pick (#107)
MikkySnow Jul 1, 2024
e2a919e
Create vesting account with 1 month vesting (#109)
deep-quality-dev Jul 8, 2024
15a333f
Update vesting integration test (#110)
deep-quality-dev Jul 8, 2024
0015c9c
Allow zero cliff (#112)
deep-quality-dev Jul 11, 2024
f0639a4
Refactor/explicit checks (#114)
MikkySnow Jul 15, 2024
0887acc
Add vesting accounts into genesis.json (#113)
deep-quality-dev Jul 15, 2024
4bbfb24
SDI changes (#111)
deep-quality-dev Jul 18, 2024
4027fbb
Chore/update test script (#116)
MikkySnow Jul 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 5 additions & 5 deletions .github/workflows/build-ci-multiplatform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Build CI multiplatform

on:
push:
tags:
- "*"
# Allows you to run this workflow manually from the Actions tab
branches: [ develop, '**-release', 'feat/sdi-changes' ]
workflow_dispatch:
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}


jobs:
Expand All @@ -25,7 +25,7 @@ jobs:
path: build/swisstronikcli-linux-amd64

macos-amd64:
runs-on: macos-latest
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
Expand All @@ -40,7 +40,7 @@ jobs:
path: build/swisstronikcli-macos-amd64

macos-arm64:
runs-on: macos-latest-xlarge
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
Expand Down
26 changes: 19 additions & 7 deletions .github/workflows/build-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,29 @@ name: Build Deb

on:
push:
tags:
- "*"
branches: [ develop, '**-release', 'release-**' ]
workflow_dispatch:
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}

jobs:
build-deb:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
SGX_MODE: HW
VERSION: "1.0.3"
PRODUCTION_MODE: true
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Retrieve the secret and decode it to a file
env:
ENCLAVE_PK_BASE64: ${{ secrets.ENCLAVE_PK_BASE64 }}
run: |
rm sgxvm/Enclave_dev_private.pem || true
rm sgxvm/Enclave_private.pem || true
echo $ENCLAVE_PK_BASE64 | base64 --decode > sgxvm/Enclave_private.pem
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand All @@ -40,12 +51,13 @@ jobs:
build-args: |
SGX_MODE=HW
ENCLAVE_HOME="/usr/lib/"
PRODUCTION_MODE=true
target: build-deb
- name: Run .deb Package Image
run: |
docker run -e VERSION=${{ steps.get_version.outputs.version-without-v }} -v $GITHUB_WORKSPACE/build:/build deb_build
cp build/swisstronik_${{ steps.get_version.outputs.version-without-v }}_amd64.deb swisstronik_${{ steps.get_version.outputs.version-without-v }}_amd64.deb
docker run -e VERSION=${{ env.VERSION }} -v $GITHUB_WORKSPACE/build:/build deb_build
cp build/swisstronik_${{ env.VERSION }}_amd64.deb swisstronik_${{ env.VERSION }}_amd64.deb
- uses: actions/upload-artifact@v3
with:
name: swisstronik_${{ steps.get_version.outputs.version-without-v }}_amd64.deb
path: swisstronik_${{ steps.get_version.outputs.version-without-v }}_amd64.deb
name: swisstronik_${{ env.VERSION }}_amd64.deb
path: swisstronik_${{ env.VERSION }}_amd64.deb
22 changes: 0 additions & 22 deletions .github/workflows/copy_issue_to_bb.yml

This file was deleted.

10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,12 @@ release/
.DS_Store
*swtr_seed
build/
.testnets/
.testnets/
**.uuid
vendor
**quote.dat
sgxvm/Enclave_private.pem

# Dynamic libraries
**libsgx_wrapper**
**libsgx_attestation_wrapper**
27 changes: 24 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
VERSION := v1.0.1
VERSION := v1.0.3
COMMIT := $(shell git log -1 --format='%H')
ENCLAVE_HOME ?= $(HOME)/.swisstronik-enclave
PRODUCTION_MODE ?= false

ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=swisstronik \
-X github.com/cosmos/cosmos-sdk/version.ServerName=swisstronikd \
-X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \
-X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT)

ldflags_static = -X github.com/cosmos/cosmos-sdk/version.Name=swisstronik \
-X github.com/cosmos/cosmos-sdk/version.ServerName=swisstronikd \
-X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \
-X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \
-w -s -linkmode 'external' -extldflags=-static

BUILD_FLAGS := -ldflags '$(ldflags)'
BUILD_FLAGS_STATIC := -ldflags "$(ldflags_static)"
DOCKER := $(shell which docker)
DOCKER_BUF := $(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace bufbuild/buf
PROJECT_NAME = $(shell git remote get-url origin | xargs basename -s .git)
Expand Down Expand Up @@ -79,13 +87,26 @@ build: go.sum
$(MAKE) -C go-sgxvm build
go build -mod=mod $(BUILD_FLAGS) -tags osusergo,netgo -o build/swisstronikd ./cmd/swisstronikd

build_d: go.sum
$(MAKE) -C go-sgxvm build_d
go build -mod=mod $(BUILD_FLAGS) -tags osusergo,netgo -o build/swisstronikd ./cmd/swisstronikd

build_attestation_server: go.sum
AS_MODE=true $(MAKE) -C go-sgxvm build_AS

build_attestation_server_d: go.sum
AS_MODE=true $(MAKE) -C go-sgxvm build_AS_d

###############################################################################
### Build commands for CLI (without SGX support) ###
###############################################################################

build-cli: go.sum
go build -mod=mod $(BUILD_FLAGS) -tags osusergo,netgo,nosgx -o build/$(BINARY_NAME) ./cmd/swisstronikd

build-cli-linux-static: go.sum
CGO_ENABLED=1 go build -mod=mod $(BUILD_FLAGS_STATIC) -tags osusergo,netgo,nosgx -o build/$(BINARY_NAME) ./cmd/swisstronikd

build-linux:
GOOS=linux GOARCH=$(if $(findstring aarch64,$(shell uname -m)) || $(findstring arm64,$(shell uname -m)),arm64,amd64) $(MAKE) build

Expand All @@ -96,10 +117,10 @@ build-macos-cli-arm:
BINARY_NAME=swisstronikcli-macos-arm64 GOOS=darwin GOARCH=arm64 $(MAKE) build-cli

build-linux-cli-amd:
BINARY_NAME=swisstronikcli-linux-amd64 GOOS=linux GOARCH=amd64 $(MAKE) build-cli
BINARY_NAME=swisstronikcli-linux-amd64 GOOS=linux GOARCH=amd64 $(MAKE) build-cli-linux-static

build-linux-cli-arm:
BINARY_NAME=swisstronikcli-linux-arm64 GOOS=linux GOARCH=arm64 $(MAKE) build-cli
BINARY_NAME=swisstronikcli-linux-arm64 GOOS=linux GOARCH=arm64 $(MAKE) build-cli-linux-static

build-windows-cli:
BINARY_NAME=swisstronikcli-windows GOOS=windows GOARCH=amd64 $(MAKE) build-cli
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,9 @@ Update target with address of your node in `monitoring/prometheus.yml`. This wil
You can start docker containers with prometheus and grafana using docker-compose. To do it, run:
```sh
docker-compose run up -d
```
```


## License

GNU GPL v3, except for "x/compliance" module - please see separate included LICENSE file in "x/compliance" folder for details.
7 changes: 2 additions & 5 deletions app/ante/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,16 @@ import (
"fmt"
"runtime/debug"

tmlog "github.com/cometbft/cometbft/libs/log"

errorsmod "cosmossdk.io/errors"
tmlog "github.com/cometbft/cometbft/libs/log"
"github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
"github.com/cosmos/cosmos-sdk/crypto/types/multisig"
sdk "github.com/cosmos/cosmos-sdk/types"
errortypes "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/cosmos/cosmos-sdk/types/tx/signing"
authante "github.com/cosmos/cosmos-sdk/x/auth/ante"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"

"swisstronik/crypto/ethsecp256k1"

"github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
)

const (
Expand Down
Loading
Loading