Mobile bindings for the Aries Framework Go library.
Note: these bindings are experimental and are subject to frequent changes.
- Golang >= 1.15
- Android SDK (via Android Studio)
- Android NDK
| /* | |
| MIT License | |
| Copyright © Joel Whitaker | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
Mobile bindings for the Aries Framework Go library.
Note: these bindings are experimental and are subject to frequent changes.
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "os" | |
| "time" | |
| "context" |
| pragma solidity ^0.4.9; | |
| contract Cookie { | |
| bool public hasChocolate; | |
| function Cookie(bool _hasChocolate) public { | |
| hasChocolate = _hasChocolate; | |
| } |
| function mapToJson(map) { | |
| return JSON.stringify([...map]); | |
| } | |
| function jsonToMap(jsonStr) { | |
| return new Map(JSON.parse(jsonStr)); | |
| } | |
| // map to JSON |
| // package.json | |
| { | |
| "dependencies": { | |
| "web3": "0.20.0", | |
| "solc": "^0.4.19" | |
| } | |
| } | |
| //Create file Ecrow.sol and create 3 variables: a buyer, a seller, and an arbiter | |
| contract Escrow { |
If you want to access the accounts on MetaMask, you will need to do the following:
LockRestore from seed phrasetruffle developSource: How can I import the accounts from truffle develop into MetaMask?