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

db and vault should treat a key's version generically #684

Merged
merged 10 commits into from
Oct 20, 2024

Conversation

adecaro
Copy link
Contributor

@adecaro adecaro commented Sep 23, 2024

This PR addresses #665

platform/common/core/generic/vault/fver/version.go Outdated Show resolved Hide resolved

func FromBytes(data []byte) (driver.BlockNum, driver.TxNum, error) {
if len(data) == 0 {
return 0, 0, nil
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this not an error?

Block driver.BlockNum
TxNum driver.TxNum
}
type Version = []byte
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this different from RawVersion?

platform/view/services/db/driver/badger/badger.go Outdated Show resolved Hide resolved
@@ -15,6 +15,8 @@ import (
"time"
"unicode/utf8"

"github.com/hyperledger-labs/fabric-smart-client/platform/common/core/generic/vault/fver"

Copy link
Contributor

Choose a reason for hiding this comment

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

space

docs/fabric/fabricdev/core/fabricdev/vault/version.go Outdated Show resolved Hide resolved
adecaro and others added 10 commits October 5, 2024 15:03
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
Signed-off-by: Alexandros Filios <alexandros.filios@ibm.com>
Copy link
Contributor

@alexandrosfilios alexandrosfilios left a comment

Choose a reason for hiding this comment

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

LGTM

Waiting on integration with TokenSDK hyperledger-labs/fabric-token-sdk#770

@adecaro adecaro merged commit 82efc73 into main Oct 20, 2024
20 checks passed
@adecaro adecaro deleted the f-vault-generic-version branch October 20, 2024 05:04
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.

3 participants