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
<?xml version="1.0" encoding="UTF-8"?> | |
<Document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.03"> | |
<CstmrCdtTrfInitn> | |
<GrpHdr> | |
<MsgId>ABC/090928/CCT001</MsgId> | |
<CreDtTm>2009-09-28T14:07:00</CreDtTm> | |
<NbOfTxs>3</NbOfTxs> | |
<CtrlSum>11500000</CtrlSum> | |
<InitgPty> | |
<Nm>ABC Corporation</Nm> |
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
{ | |
"@context": "https://www.w3.org/ns/did/v1", | |
"id": "did:example:123456789abcdefghi", | |
"authentication": [{ | |
"id": "did:example:123456789abcdefghi#keys-1", | |
"type": "Ed25519VerificationKey2018", | |
"controller": "did:example:123456789abcdefghi", | |
"publicKeyBase58": "H3C2AVvLMv6gmMNam3uVAjZpfkcJCwDwnZn6z3wXmqPV" | |
}], | |
"service": [{ |
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 { Connect } from 'uport-connect' | |
const uport = new Connect('My App', { | |
network: 'mainnet' | |
}) |
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 { Credentials } from 'uport' | |
import { verifyJWT } from 'did-jwt' | |
async function mySigner (data) { | |
// bring up signing UX | |
// sign data with sha256/secpk256k1 | |
// see https://github.com/uport-project/did-jwt#creating-custom-signers-for-integrating-with-hsm | |
return | |
} |
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
{ | |
"name": "exampleapp", | |
"version": "0.0.1", | |
"private": true, | |
"scripts": { | |
"start": "node_modules/react-native/packager/packager.sh --nonPersistent", | |
"test": "jest", | |
"build-uport-connect": "node_modules/.bin/derequire node_modules/uport-connect/dist/uport-connect.js >src/vendor/uport-connect.js" | |
}, | |
"dependencies": { |
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
0x48987918EFa6A28CA966fdb2b14729e12A2e2cA6 |
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
(use '[datomic.api :only [q db] :as d]) | |
(def uri "datomic:mem://accounts") | |
;; create database | |
(d/create-database uri) | |
;; connect to database | |
(def conn (d/connect uri)) |
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
contract Escrow { | |
address buyer; | |
address seller; | |
address agent; | |
function Escrow(address _agent, address _seller) { | |
// In this simple example, the person sending money is the buyer and sets up the initial contract | |
buyer = msg.sender; | |
agent = _agent; | |
seller = _seller; |
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
contract EscrowContract { | |
address buyer; | |
address seller; | |
address agent; | |
// Each party has an entry here with the timestamp of their acceptance | |
uint[3] acceptances; | |
bool active; |
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
int gold_coin; | |
int* dollar_bill; | |
gold_coin = 100; | |
dollar_bill = &gold_coin; | |
if (dollar_bill == gold_coin ) | |
printf("Dollar bill has same intrinsic value as gold coin\n"); | |
else | |
printf("Dollar bill does not have same intrinsic value as gold coin\n"); |
NewerOlder