for kfrag in kfrags:
cfrag = umbral.reencrypt(kfrag, umbral_capsule)
bob_capsule.attach_cfrag(cfrag)
bob_plaintext = umbral.decrypt(bob_capsule, bob_priv_key, alice_ciphertext, alice_pub_key)
#State variables
helloMessage: public(bytes32)
owner: public(address)
#Constructor
This file contains hidden or 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
``` | |
#State variables | |
**helloMessage: public(bytes32)** | |
owner: public(address) | |
#Constructor | |
@public | |
def __init__(_message: bytes32): | |
#Sets the message which is passed in at execution |
If you have a ~/opt directory full of folders like boost, delete that before commencing the following (rather get everything fresh)
cd ~
git clone https://github.com/EOSIO/eos.git
cd ~/eos
git submodule update --init --recursive
./eosio_build.sh
To make the executable programs available (such as eosiocpp) run the following commands
tim.cpp:15:64: error: no matching conversion for functional-style cast from 'uint64_t' (aka 'unsigned long long') to 'eosio::name'
eosio::print( "Hello World: ", eosio::name(code), "->", eosio::name(action), "\n" );
The cpp file to which the error referrs is below
This file contains hidden or 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
``` | |
sudo apt-get update | |
sudo apt-get upgrade | |
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) | |
source $HOME/.gvm/scripts/gvm | |
gvm install go1.9.2 -B | |
gvm use go1.9.2 --default | |
go get github.com/CyberMiles/travis | |
git checkout master | |
cd $GOPATH/src/github.com/CyberMiles/travis |
This file contains hidden or 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
#!/bin/bash | |
# Please note this is an experimantal installation; for research and development | |
# This installation must only be carried out on a clean/fresh Ubuntu 18.04 LTS system (and is for research and development purposes only) | |
#Let's get started | |
#System preparation Ubuntu 18.04 LTS | |
cd ~ | |
sudo apt-get -y update | |
sudo apt-get -y upgrade | |
sudo apt-get -y autoremove |
This file contains hidden or 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
#include <vector> | |
#include <iostream> | |
int main(){ | |
//Create a C++ vector | |
std::cout << "Creating a new vector v" << std::endl; | |
std::vector<int> v; | |
//Add the int 1 to the first position (position 0) | |
std::cout << "Adding 1 to position 0" << std::endl; | |
v.push_back(1); |