diff --git a/libp2p/cid.nim b/libp2p/cid.nim index 970988814..203a63ddc 100644 --- a/libp2p/cid.nim +++ b/libp2p/cid.nim @@ -1,5 +1,5 @@ # Nim-LibP2P -# Copyright (c) 2023 Status Research & Development GmbH +# Copyright (c) 2023-2024 Status Research & Development GmbH # Licensed under either of # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) # * MIT license ([LICENSE-MIT](LICENSE-MIT)) @@ -261,12 +261,6 @@ proc write*(vb: var VBuffer, cid: Cid) {.inline.} = ## Write CID value ``cid`` to buffer ``vb``. vb.writeArray(cid.data.buffer) -proc encode*(mbtype: typedesc[MultiBase], encoding: string, - cid: Cid): string {.inline.} = - ## Get MultiBase encoded representation of ``cid`` using encoding - ## ``encoding``. - result = MultiBase.encode(encoding, cid.data.buffer).tryGet() - proc hash*(cid: Cid): Hash {.inline.} = hash(cid.data.buffer)