Skip to content

Instantly share code, notes, and snippets.

View whyrusleeping's full-sized avatar

Whyrusleeping whyrusleeping

  • Mana
  • The Metaverse
View GitHub Profile
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: Filecoin phase2 signing public-key
mDMEXvzx3hYJKwYBBAHaRw8BAQdAhm7mEJ8gWmceN72AVeJuCv//nU2EL4kiUxkI
KHB0TcC0H0ZpbGVjb2luIG1haW5uZXQgcGhhc2UyIHNpZ25pbmeIkAQTFggAOBYh
BJmVwTIy1pFS4yckeNZyvJBw+JtVBQJe/PHeAhsDBQsJCAcCBhUKCQgLAgQWAgMB
Ah4BAheAAAoJENZyvJBw+JtVJYIA+gNP9PTdhnzaTjN/lTYt6tSVLgvbiFTLA8GS
4lLIO+NtAQDazJ9FGDONO9oSy9tL0knt8aPS23Su8aTeNHrewRiNCA==
=rP7h
-----END PGP PUBLIC KEY BLOCK-----
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: Filecoin phase2 signing public-key
mDMEXvzx3hYJKwYBBAHaRw8BAQdAhm7mEJ8gWmceN72AVeJuCv//nU2EL4kiUxkI
KHB0TcC0H0ZpbGVjb2luIG1haW5uZXQgcGhhc2UyIHNpZ25pbmeIkAQTFggAOBYh
BJmVwTIy1pFS4yckeNZyvJBw+JtVBQJe/PHeAhsDBQsJCAcCBhUKCQgLAgQWAgMB
Ah4BAheAAAoJENZyvJBw+JtVJYIA+gNP9PTdhnzaTjN/lTYt6tSVLgvbiFTLA8GS
4lLIO+NtAQDazJ9FGDONO9oSy9tL0knt8aPS23Su8aTeNHrewRiNCA==
=rP7h
-----END PGP PUBLIC KEY BLOCK-----
@whyrusleeping
whyrusleeping / gist:668ea87402c23d40abdbf120c27c7518
Created January 17, 2020 19:08
lotus message bafy2bzacedsyr4ojuomkt2e4423l27p37mf35onkmzsvg7ketjqvv4yowhnjc
./lotus chain read-obj bafy2bzacedsyr4ojuomkt2e4423l27p37mf35onkmzsvg7ketjqvv4yowhnjc
8842000358310393b51c011a1974a62b384e2a86842abf38c9f0a7d3f679c4ce992876b4806b85fb2d166c67846f93bb61ac84be1aa2a619035a404044000f424005587a8181895820fd2fc3c8f13169111766c62c629262752b2be468f531cfc88c0b47d1ac13c62e1b00000007f000000058310393b51c011a1974a62b384e2a86842abf38c9f0a7d3f679c4ce992876b4806b85fb2d166c67846f93bb61ac84be1aa2a6430087081bffffffffffffffff1b7fffffffffffffff4040f6
@whyrusleeping
whyrusleeping / full block
Last active January 17, 2020 19:06
Block bafy2bzaceb5hk4hvnftzafs2qfyxuf4c7yujrzveuuhdcwg2db7kyutybkgx2
{
"Miner": "t01227",
"Ticket": {
"VRFProof": "lmRJLzDpuVA7cUELHTguK9SFf+IVOaySG8t/0IbVeHHm3VwxzSNhi1JStix7REw6Apu6rcJQV1aBBkd39gQGxP8Abzj8YXH+RdSD5RV50OJHi35f3ixR0uhkY6+G08vV"
},
"EPostProof": {
"Proof": "rn85uiodD29xvgIuvN5/g37IXghPtVtl3li9y+nPHCueATI1q1/oOn0FEIDXRWHLpZ4CzAqOdQh9rdHih+BI5IsdI1YpwV+UdNDspJVW/cinVE+ZoiO86ap30l77RLkrEwxUZ5v8apsSRUizoXh1IFrHgK06gk1wl5LaxY2i/CQgBoWIPx9o2EYMBbNfQcu+pRzFmiDjzT6BIhYrPbo+gm6wHFiNhp3FvAuSUH2/N+5MKZo7Eh7LwgGLc0fL4MEI",
"PostRand": "hdodcCz5kLJYRb9PT7m4z9kRvc9h02KMye9DOklnQ8v05X2ds9rgNhcTV+d/cXS+AvADHpepQODMV/6E1kbT99kdFt0xMNUsO/9YbH4ujif7sY0P8pgRAunlMgPrx7Sx",
"Candidates": [
{
@whyrusleeping
whyrusleeping / README.md
Last active January 28, 2019 17:34
SCRIPT-8
package main
import (
"fmt"
"net"
"os"
"time"
"github.com/hashicorp/yamux"
)
package main
import (
"fmt"
"net"
cmds "github.com/ipfs/go-ipfs/commands"
core "github.com/ipfs/go-ipfs/core"
corehttp "github.com/ipfs/go-ipfs/core/corehttp"
corenet "github.com/ipfs/go-ipfs/core/corenet"
### Keybase proof
I hereby claim:
* I am whyrusleeping on github.
* I am whyrusleeping (https://keybase.io/whyrusleeping) on keybase.
* I have a public key whose fingerprint is EEEB E873 9705 A3C7 D8B3 FCD1 602A 1369 B7EF 1C07
To claim this, I am signing this object:

ipfs examples

some basics

to get started, we need to make sure ipfs has been initialized, if you havent done this yet:

ipfs init

next lets start up the ipfs daemon:

2014-10-20 09:50:49.336382 ERROR conn.go:157: Sent msg to peer without open conn: [Peer QmcKw6TB3Hta]
Got value: 'val'
2014-10-20 09:50:49.337095 ERROR conn.go:157: Sent msg to peer without open conn: [Peer QmfF4PoknRXu]
Got value: 'val'
2014-10-20 09:50:49.339916 ERROR service.go:236: no request key [18 32 74 177 131 7 163 24 217 228 53 90 144 68 160 225 53 151 106 230 64 179 32 143 173 4 204 27 69 232 80 83 67 189 61 57 40 106] (timeout?)
2014-10-20 09:50:49.339935 ERROR service.go:236: no request key [18 32 148 62 215 111 240 194 66 230 170 91 160 212 162 87 118 107 7 96 80 63 147 219 92 62 8 69 220 122 156 208 123 180 4 177 154 151] (timeout?)
Got value: 'val'
2014-10-20 09:50:49.344607 ERROR service.go:236: no request key [18 32 255 127 252 182 79 61 51 219 249 186 175 24 204 224 119 30 95 1 218 139 5 215 228 173 198 230 234 171 198 103 197 12 69 22 121 231] (timeout?)
2014-10-20 09:50:49.344658 ERROR service.go:236: no request key [18 32 148 62 215 111 240 194 66 230 170 91 160 212 162 87 118 107 7 96 8