Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rust-secp256k1
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
rust-secp256k1
Commits
f4d78ece
Commit
f4d78ece
authored
5 years ago
by
David
Browse files
Options
Downloads
Patches
Plain Diff
Remove deprecated functions
parent
d5170b64
Branches
29
No related merge requests found
Pipeline
#54638
passed with stage
in 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ffi.rs
+0
-12
0 additions, 12 deletions
src/ffi.rs
with
0 additions
and
12 deletions
src/ffi.rs
+
0
−
12
View file @
f4d78ece
...
...
@@ -77,9 +77,6 @@ impl_raw_debug!(PublicKey);
impl
PublicKey
{
/// Create a new (zeroed) public key usable for the FFI interface
pub
fn
new
()
->
PublicKey
{
PublicKey
([
0
;
64
])
}
/// Create a new (uninitialized) public key usable for the FFI interface
#[deprecated(since
=
"0.7"
,
note
=
"Please use the new function instead"
)]
pub
unsafe
fn
blank
()
->
PublicKey
{
PublicKey
::
new
()
}
}
impl
hash
::
Hash
for
PublicKey
{
...
...
@@ -103,17 +100,11 @@ impl_raw_debug!(RecoverableSignature);
impl
Signature
{
/// Create a new (zeroed) signature usable for the FFI interface
pub
fn
new
()
->
Signature
{
Signature
([
0
;
64
])
}
/// Create a new (uninitialized) signature usable for the FFI interface
#[deprecated(since
=
"0.7"
,
note
=
"Please use the new function instead"
)]
pub
unsafe
fn
blank
()
->
Signature
{
Signature
::
new
()
}
}
impl
RecoverableSignature
{
/// Create a new (zeroed) signature usable for the FFI interface
pub
fn
new
()
->
RecoverableSignature
{
RecoverableSignature
([
0
;
65
])
}
/// Create a new (uninitialized) signature usable for the FFI interface
#[deprecated(since
=
"0.7"
,
note
=
"Please use the new function instead"
)]
pub
unsafe
fn
blank
()
->
RecoverableSignature
{
RecoverableSignature
::
new
()
}
}
/// Library-internal representation of an ECDH shared secret
...
...
@@ -125,9 +116,6 @@ impl_raw_debug!(SharedSecret);
impl
SharedSecret
{
/// Create a new (zeroed) signature usable for the FFI interface
pub
fn
new
()
->
SharedSecret
{
SharedSecret
([
0
;
32
])
}
/// Create a new (uninitialized) signature usable for the FFI interface
#[deprecated(since
=
"0.7"
,
note
=
"Please use the new function instead"
)]
pub
unsafe
fn
blank
()
->
SharedSecret
{
SharedSecret
::
new
()
}
}
extern
"C"
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment