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
object SigmaByteArrayEncode extends App { | |
import scorex.util.encode.Base16 | |
val bs = Base16.decode("10010101d801d601d17300ea0272017201").get | |
val bac = ByteArrayConstant(bs) | |
println(Base16.encode(ValueSerializer.serialize(bac))) | |
} |
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
ergo { | |
node { | |
# do not store UTXO set | |
stateType = "digest" | |
# download and keep only ~4 days of full-blocks | |
blocksToKeep = 2880 | |
mining = false | |
} | |
} |
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
pub use ergo_node_interface::node_interface::{NodeInterface, NodeError}; | |
fn main() { | |
let api_key= "..."; | |
let ip = "127.0.0.1"; | |
let port= "9053"; | |
let node = NodeInterface::new(api_key, ip, port); | |
let h: Result<u64, NodeError> = node.current_block_height(); |
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
Семинар 6: структуры данных с подтверждением | |
Реализовать одну из следующих структур данных с подтверждением. | |
Один человек делает доклад про: | |
1) мотивацию, с которой схема была разработана | |
2) поддерживаемые структурой операции и их асимптотики | |
3) реализации и конкретные цифры производительностей операций | |
4) как делается тестирование программ |
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
yarn run v1.21.1 | |
$ yarn build && electron ./app/main/electron.js | |
$ rimraf app/ && yarn compile && webpack --config webpack.config.js | |
$ tsc | |
Hash: c52e803eccfc46f6220f | |
Version: webpack 4.41.2 | |
Child | |
Hash: c52e803eccfc46f6220f | |
Time: 29114ms | |
Built at: 09/23/2020 7:22:14 PM |
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
curl -s https://raw.githubusercontent.com/ergoplatform/ergo/master/ergo-installer.sh | sh -s -- --api-key=<YOUR_API_KEY> |
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
ergo { | |
node { | |
stateType = "digest" | |
blocksToKeep = 2880 | |
mining = false | |
} | |
} |
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
ergo { | |
node { | |
mining = true | |
} | |
} | |
scorex { | |
restApi { | |
# you may wish to configure an apiKeyHash to use your wallet. Check https://ergoplatform.org/en/blog/2019_06_04_wallet-documentation/ for wallet documentation. | |
apiKeyHash = "1111" |
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
{ "mnemonic": "do not reveal your secret mnemonic to anyone", "node": "http://127.0.0.1:9053", "keepPrehash": true } |
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
ergo { | |
directory = "/home/kushti/ergo/mainnet-light/.ergo" | |
node { | |
stateType = "digest" | |
blocksToKeep = 2880 | |
mining = false | |
} |