1// Copyright 2018 Keybase, Inc. All rights reserved. Use of 2// this source code is governed by the included BSD license. 3 4package kbcrypto 5 6import ( 7 "crypto/sha256" 8 9 "github.com/keybase/client/go/protocol/keybase1" 10) 11 12func ComputeSigIDFromSigBody(body []byte) keybase1.SigIDBase { 13 return keybase1.SigIDBaseFromBytes(sha256.Sum256(body)) 14} 15