Skip to content

Commit 4145004

Browse files
authored
Update sign-verify-key-with-go-sdk.mdx
1 parent c40f42d commit 4145004

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

pages/key-manager/api-cli/sign-verify-key-with-go-sdk.mdx

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
11
---
22
meta:
3-
title: Create and validate signatures using Scaleway Go SDK and Key Manager
4-
description: Learn how to create and validate signature using Key Manager with Scaleway Go SDK.
3+
title: Managing signatures using the Scaleway Go SDK and Key Manager
4+
description: Learn how to create and validate signatures using Key Manager with the Scaleway Go SDK.
55
content:
6-
h1: Create and validate signatures using Scaleway Go SDK and Key Manager
7-
paragraph: Learn how to create and validate signature using Key Manager with Scaleway Go SDK.
6+
h1: Managing signatures using the Scaleway Go SDK and Key Manager
7+
paragraph: Learn how to create and validate signatures using Key Manager with the Scaleway Go SDK.
88
tags: key sensitive-data signature verification sign verify digest
99
dates:
10-
validation: 2025-02-06
11-
posted: 2025-02-06
10+
validation: 2025-05-27
11+
posted: 2025-05-27
1212
---
1313

14-
This page shows you how to perform asymmetric signing and verification using Scaleway Key Manager (KMS).
15-
16-
In this tutorial, we will walk you through setting up your environment to interact with the Scaleway API and Key Manager,
17-
and then demonstrate how to sign and verify messages using asymmetric keys.
14+
This page shows you how to perform asymmetric signing and verification using Scaleway Key Manager. This documentation page shows you how to set up your environment to interact with the Scaleway API and Key Manager, and sign and verify messages using asymmetric keys.
1815

1916
## Configuring your environment variables
2017

21-
Configuring your environment variables allows the Go application to authenticate and use Scaleway's API and Key Manager.
18+
Configuring your environment variables allows the Go application to authenticate and use the Scaleway API and Key Manager.
2219

2320
Open a terminal and paste the following commands to export your environment variables. Make sure that you add your **own variables**. You can also use a Scaleway configuration file.
2421

@@ -34,10 +31,10 @@ Open a terminal and paste the following commands to export your environment vari
3431

3532
```golang
3633
// signAsymmetric signs a plaintext message using a saved asymmetric private key 'ec_p256_sha256'
37-
// stored in Scaleway Key Manager.
34+
// stored in Key Manager.
3835
//
3936
// Parameters:
40-
// - keyID: The unique identifier of the asymmetric key stored in Scaleway Key Manager.
37+
// - keyID: The unique identifier of the asymmetric key stored in Key Manager.
4138
// - message: The plaintext message that needs to be signed.
4239
//
4340
// Returns:
@@ -79,7 +76,7 @@ func signAsymmetric(keyID string, message string) error {
7976
}
8077
```
8178

82-
## Validating an elliptic curve signature
79+
## Validating the signature
8380

8481
```golang
8582
// verifyAsymmetricSignature verifies that an 'ec_p256_sha256' signature is valid for a given message.
@@ -121,4 +118,4 @@ func verifyAsymmetricSignature(keyID string, message, signature []byte) error {
121118

122119
return nil
123120
}
124-
```
121+
```

0 commit comments

Comments
 (0)