Skip to content

Instantly share code, notes, and snippets.

View jul29.cpp
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
#define MAX 100
struct NGAY
{
int ngay, thang, nam;
};
struct KHACHHANG
{
View highway_interface.go
type Highway interface {
BroadcastBlock(blockHeight int, blockData []byte, shardID int) error
ListenToBlock(shardID int) (channel []byte, error)
RequestBlock(blockHeight int, shardID int) ([]byte, error)
PublishState(pubkey []byte, state []byte, shardID int) error
}
@0xbunyip
0xbunyip / burnproof.json
Created Aug 8, 2019
Proof of a burning request
View burnproof.json
{
"Id": 1,
"Result": {
"Instruction": "373231000000000000000000000000a61b76afe33830e564bf0f07ceb4e39d5ca43280000000000000000000000000e722d8b71dcc0152d47d2438556a45d3357d631f00000000000000000000000000000000000000000000000000000000000003e8861b7ffd2da08f2269eea5bdcd548203e88119dd08259e6c21e473ae41651ec800000000000000000000000047e26a86391e382517e2577970e0b9a9c44a2301",
"BeaconHeight": "0000000000000000000000000000000000000000000000000000000000000141",
"BridgeHeight": "00000000000000000000000000000000000000000000000000000000000000d8",
"BeaconInstPath": [
"3a4b6dbf405768b47810be821f379acd82f051e8219a80e2f14b876098f243e7",
"e8d810454c393ffad6ad817ae5612fdcb1bae76d7b27d03525b697ef42547a6f",
"a63456e4cf93b8261b48e696ad401a0d101e6adef19395b6beee914c27aad149",
View vault.vy.py
@constant
@public
def instructionApproved(
isBeacon: bool,
instHash: bytes32,
height: uint256,
instPath: bytes32[INST_MAX_PATH],
instPathIsLeft: bool[INST_MAX_PATH],
instPathLen: int128,
instRoot: bytes32,
@0xbunyip
0xbunyip / burningrequest.go
Created Aug 7, 2019
Burning request: burn private tokens on Incognito and generate BurnProof
View burningrequest.go
type BurningRequest struct {
BurnerAddress privacy.PaymentAddress
BurningAmount uint64
TokenID common.Hash
TokenName string
RemoteAddress string
MetadataBase
}