forked from snxraven/ravenscott-blog
update
This commit is contained in:
parent
9a9411823f
commit
b18ac40bd4
@ -101,7 +101,7 @@ In this system, **Hyperdrive** integrated with `dnsCore` presents a theoretical
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
// Hypothetical TX record for the example.p2p domain
|
// Hypothetical TX record for the example.p2p domain
|
||||||
const txDrive = new Hyperdrive(store, { name: 'example.p2p' });
|
const txDrive = new Hyperdrive(store, { name: 'account.example.p2p' });
|
||||||
await txDrive.ready();
|
await txDrive.ready();
|
||||||
await txDrive.put('/tx/wallet123.json', Buffer.from(JSON.stringify({
|
await txDrive.put('/tx/wallet123.json', Buffer.from(JSON.stringify({
|
||||||
type: "TX",
|
type: "TX",
|
||||||
@ -118,7 +118,7 @@ In this system, **Hyperdrive** integrated with `dnsCore` presents a theoretical
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
// Hypothetical PEER record for the service.peer domain
|
// Hypothetical PEER record for the service.peer domain
|
||||||
const peerDrive = new Hyperdrive(store, { name: 'service.peer' });
|
const peerDrive = new Hyperdrive(store, { name: 'node.service.peer' });
|
||||||
await peerDrive.ready();
|
await peerDrive.ready();
|
||||||
await peerDrive.put('/peers/node456.json', Buffer.from(JSON.stringify({
|
await peerDrive.put('/peers/node456.json', Buffer.from(JSON.stringify({
|
||||||
type: "PEER",
|
type: "PEER",
|
||||||
|
Loading…
Reference in New Issue
Block a user