Skip to content

Commit

Permalink
Revert "feat: reusable ipns verify (#292)"
Browse files Browse the repository at this point in the history
This reverts commit 236e39e.
  • Loading branch information
hacdias committed May 10, 2023
1 parent 236e39e commit dc731ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 143 deletions.
6 changes: 4 additions & 2 deletions gateway/handler_ipns_record.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ import (
"time"

"github.com/cespare/xxhash/v2"
"github.com/gogo/protobuf/proto"
ipath "github.com/ipfs/boxo/coreiface/path"
"github.com/ipfs/boxo/ipns"
ipns_pb "github.com/ipfs/boxo/ipns/pb"
"github.com/ipfs/go-cid"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/trace"
Expand Down Expand Up @@ -49,7 +50,8 @@ func (i *handler) serveIpnsRecord(ctx context.Context, w http.ResponseWriter, r
return false
}

record, err := ipns.UnmarshalIpnsEntry(rawRecord)
var record ipns_pb.IpnsEntry
err = proto.Unmarshal(rawRecord, &record)
if err != nil {
webError(w, err, http.StatusInternalServerError)
return false
Expand Down
141 changes: 0 additions & 141 deletions ipns/entries.go

This file was deleted.

0 comments on commit dc731ca

Please sign in to comment.