Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce the scope of IPIP-337 by excluding write operations #370

Merged
merged 2 commits into from
Jan 24, 2023

Conversation

masih
Copy link
Member

@masih masih commented Jan 24, 2023

Reduce the scope of IPIP-337 by temporarily excluding write operation. The write operations are to be added in a separate PR once the IPIP-337 is merged.

See:

Reduce the scope of IPIP-337 by temporarily excluding write operation.
The write operations are to be added in a separate PR once the IPIP-337
is merged.

See:
 - #337
@masih masih requested review from guseggert and lidel January 24, 2023 13:42
Fix lint issues as reported by GitHub `super-liner`, including:
- empty lines surrounding headers.
- maximum line length.
- unique headers
- natural language.
- tailing space.
@masih masih force-pushed the masih/rm_put_deleg_routing_api branch from fcb1a5c to 9c47a31 Compare January 24, 2023 14:13
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @masih, merging, let's continue in #337

@lidel lidel merged commit 512bc05 into feat/delegated-routing-http-api Jan 24, 2023
@lidel lidel deleted the masih/rm_put_deleg_routing_api branch January 24, 2023 21:21
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@masih when you open IPIP with these PUTs specs, remember to re-apply below suggestions originally proposed on IPIP-337:

}
```

- `Signature`: a multibase-encoded signature of the sha256 hash of the `Payload` field, signed using the private key of the Peer ID specified in the `Payload` JSON
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Signature: a multibase-encoded signature of the sha256 hash of the Payload field, signed using the private key of the Peer ID specified in the Payload JSON. Signing details for specific key types should follow libp2p/peerid specs, unless stated otherwise.

- `ID` is the peer ID that was used to sign the record
- `Addrs` is a list of string-encoded multiaddrs

A 403 response code should be returned if the signature check fails.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A 400 Bad Request response code should be returned if the signature check fails.

@masih
Copy link
Member Author

masih commented Jan 25, 2023

Thanks @lidel I'll open the PUT IPIP after #337 is merged.

masih added a commit that referenced this pull request Feb 13, 2023
Previous work reduced the scope of IPIP-337 to read operations only. The
changes here re-introduce the write operations originally written by
@guseggert back into IPIP-337.

The specification documents the ability to provide Bitswap records over
`PUT` requests with advisory TTL. An implementation of the specification
is already present in go-libipfs.

See:
 - #370
masih added a commit that referenced this pull request Feb 13, 2023
Previous work reduced the scope of IPIP-337 to read operations only. The
changes here re-introduce the write operations originally written by
@guseggert back into IPIP-337.

The specification documents the ability to provide Bitswap records over
`PUT` requests with advisory TTL. An implementation of the specification
is already present in go-libipfs.

See:
 - #370
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants