How to clone a private git repository in a nix derivation

{ nixpkgs ? import <nixpkgs> {} }:nixpkgs.pkgs.fetchgitPrivate { url = “ssh://[email protected]/trycatchchris/blog.git”; rev = “0f5fe7ebf0724eb17aea4141e0cf3f1758a6d716”; sha256 = “02951e82c1183aaf1ce4b9669bf9ae32e50c4c641550797eed37739cd4528b58”; } I’ve got the above nix expression, where the repo is a private git repository. I do have access to this repository via a public key for my user. If I try a regular nix-build: nix-build trace: Please…

Details

Is it considered secure at all to use passwords and private keys in the code of smart contract?

Basically something like: function transfer(address to, string privkey) { if(privkey == “cd33434343…”) { msg.sender.transfer(this.balance); } } The above is obviously flawed since the privkey is in string when the if conditions checks it so someone can read the .sol sourcecode (if on etherscan…). But what if it’s just argument of a function? I mean since…

Details