github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/externals/common.go (about)

     1  // Copyright 2017 Keybase, Inc. All rights reserved. Use of
     2  // this source code is governed by the included BSD license.
     3  
     4  package externals
     5  
     6  import (
     7  	"github.com/keybase/client/go/libkb"
     8  	"github.com/keybase/client/go/protocol/keybase1"
     9  	"github.com/keybase/client/go/pvl"
    10  )
    11  
    12  func CheckProofPvl(m libkb.MetaContext, proofType keybase1.ProofType, proof libkb.RemoteProofChainLink, hint libkb.SigHint, pvlU keybase1.MerkleStoreEntry) libkb.ProofError {
    13  	return pvl.CheckProof(m, string(pvlU.Entry), proofType, pvl.NewProofInfo(proof, hint))
    14  }