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 is in the RN app. It shows the Client logic (CreateAccount), the RN Authenticator implementation and the service that calls the blockchain. | |
import { User as UserSdk, Authenticator, AuthenticatorLevel } from 'tonomy-id-sdk'; | |
class RNAuthenticator implements Authenticator { | |
createPermission(level: AuthenticatorLevel, privateKey: string, challenge: string) { | |
// stores the key in keychain with the challenge | |
return 'publicKey'; | |
} |
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
2020-09-16T21:36:51.868Z (api) registering development exporters from environment variables (dtracing@v0.0.0-20200417133307-c09302668d0c/api.go:139) | |
2020-09-16T21:36:51.868Z (dfuse) starting atomic level switcher (launcher/logging.go:119) {"listen_addr": "localhost:1065"} | |
2020-09-16T21:36:51.868Z (dfuse) ulimit max open files before adjustment (launcher/setup.go:61) {"current_value": 1048576} | |
2020-09-16T21:36:51.868Z (dfuse) no need to update ulimit as it's already higher than our good enough value (launcher/setup.go:63) {"good_enough_value": 256000} | |
2020-09-16T21:36:51.868Z (dfuse) dfuseeos binary started (cli/start.go:51) {"data_dir": "./dfuse-data"} | |
2020-09-16T21:36:51.868Z (dfuse) Starting dfuse for EOSIO with config file './dfuse.yaml' (cli/start.go:54) | |
2020-09-16T21:36:51.879Z (start) configured block filter (cli/start.go:92) {"block_filter": "[include: *, exclude: , system: receiver == 'eosio' && action in ['updateauth', 'deleteauth', 'linkauth', 'unlinkauth', 'newaccount', 'setabi']]"} | |
2020-09-16T21 |
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 is a casual review only of the contract https://github.com/samistart/EFLD10Coin/blob/master/EFLD10Coin.sol | |
this is not a commercial review | |
at commit 8bca4279b0ec2e81c1092574ccfd7130078dcff0 by Jack Tanner | |
### major issues | |
1. none | |
### minor issues: | |
1. pass 0x11f9cEd89E64ea505eE44D07Ea49848522729ba3 in as constructor argument instead | |
2. using address(0) is ok. Usnig the address of a suicided contract is better IM |
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
pragma solidity ^0.4.0; | |
import './Ownable.sol'; | |
contract SimpleCoin is Ownable{ | |
string name; | |
uint total; | |
uint limit; | |
mapping (address => uint) balances; |
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
import './Upgradeable.sol'; | |
contract SimpleUint is Upgradeable { | |
uint public value; | |
string public name = "SimpleUint"; | |
function setValue(uint _value) public { | |
value = _value; | |
} |
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
pragma solidity ^0.4.18; | |
/** | |
* @title Ownable | |
* @dev The Ownable contract has an owner address, and provides basic authorization control | |
* functions, this simplifies the implementation of "user permissions". | |
* @author https://github.com/OpenZeppelin/zeppelin-solidity | |
*/ | |
contract Ownable { |
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
pragma solidity ^0.4.18; | |
/** | |
* @title Ownable | |
* @dev The Ownable contract has an owner address, and provides basic authorization control | |
* functions, this simplifies the implementation of "user permissions". | |
* @author https://github.com/OpenZeppelin/zeppelin-solidity | |
*/ | |
contract Ownable { |
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
const bigchain = require('bigchaindb-driver') | |
const API_PATH = 'http://localhost:9984/api/v1/' | |
const bigchainConnection = new bigchain.Connection(API_PATH) | |
var aliceKey = new bigchain.Ed25519Keypair() | |
var bobKey = new bigchain.Ed25519Keypair() | |
// Condition that BOTH Alice AND Bob are needed to fulfill this output | |
var subConditionUser = bigchain.Transaction.makeEd25519Condition(aliceKey.publicKey, false) |
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
pragma solidity ^0.4.10; | |
contract Victim { | |
mapping (address => uint) public funds; | |
event Deposit(address deposit, uint amount); | |
event Withdrawal(address withdrawal, uint amount); | |
// event consoleLogUin(string message, uint value); | |
function deposit() payable { | |
funds[msg.sender] += msg.value; |
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
0x61B122c456B72aef1fE767Ee5b2aC486356e6c45 |
NewerOlder