arch -arm64 brew install cmake pkg-config
brew install secp256k1 cjson curl mbedtlsmbedtls is required by the current CMake build. For standard macOS setup, install it with Homebrew.
If you are building with armcc / Arm Compiler, you can also provide mbedtls via vcpkg:
cd ~
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
sh bootstrap-vcpkg.sh
export PATH="$HOME/vcpkg:$PATH"
# If necessary, add it to your CMAKE_PREFIX_PATH
vcpkg install mbedtlscmake -S . -B build
cmake --build buildctest --test-dir build --output-on-failure
# Focused request-signing parity test
./build/sequence_request_signing_test./build/sequence-demo# Init
./build/sequence-wallet init --access-key AQAAAAAAAAK2JvvZhWqZ51riasWBftkrVXE
# Get token balances
./build/sequence-wallet get-token-balances --chain-id 137 --contract-address 0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359 --wallet-address 0x8e3E38fe7367dd3b52D1e281E4e8400447C8d8B9 --include-metadata
# Sign in with Email
./build/sequence-wallet sign-in-with-email --email andygruening@gmail.com
# Confirm Email sign in
./build/sequence-wallet confirm-email-sign-in --email andygruening@gmail.com --code 123456 --wallet-type Ethereum_EOA
# Use wallet
./build/sequence-wallet use-wallet --wallet-type Ethereum_EOA
# Create wallet
./build/sequence-wallet create-wallet
# Sign message
./build/sequence-wallet sign-message --chain-id 80002 --message test
# Verify signature
./build/sequence-wallet verify-signature --chain-id 80002 --wallet-address 0xb7461CcfFfc7378747C6f82804E4dEc04b9E6148 --message test --signature 0x...
# Send transaction
./build/sequence-wallet send-transaction --chain-id 80002 --to 0xE5E8B483FfC05967FcFed58cc98D053265af6D99 --value 0- Create a tag and version release on GitHub
- Reference the .tar.gz file
urlfrom the release inside theFormula/wallet.rbfile - Compute the file hash
curl -L <url.tar.gz> | shasum -a 256 - Replace the sha256 value inside
wallet.rbwith the hash from the latest release - Create a PR and merge it into
master
# Remove tap if needed
brew untap 0xsequence/c-sdk
# Create tap, then install
brew tap 0xsequence/c-sdk https://github.com/0xsequence/c-sdk/
brew install 0xsequence/c-sdk/wallet